diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-22 14:25:32 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-22 14:35:49 +0200 |
commit | 0f319334065fae8756fe7c7eec333000474d07ba (patch) | |
tree | 2ddc1fa8bdb9307b82cf52c91c86d3ba7a33cf62 /client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.ts | |
parent | 87e0b71d36ae3d8f098c2be0ab45a29c9f2854b4 (diff) | |
download | PeerTube-0f319334065fae8756fe7c7eec333000474d07ba.tar.gz PeerTube-0f319334065fae8756fe7c7eec333000474d07ba.tar.zst PeerTube-0f319334065fae8756fe7c7eec333000474d07ba.zip |
Add ability to hide plugin form fields
Diffstat (limited to 'client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.ts')
-rw-r--r-- | client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.ts | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.ts b/client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.ts index 6ef4dbc68..34848b036 100644 --- a/client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.ts +++ b/client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.ts | |||
@@ -3,7 +3,6 @@ import { PrimeNGConfig } from 'primeng/api' | |||
3 | 3 | ||
4 | @Injectable() | 4 | @Injectable() |
5 | export class I18nPrimengCalendarService { | 5 | export class I18nPrimengCalendarService { |
6 | private readonly calendarLocale: any = {} | ||
7 | 6 | ||
8 | constructor (private config: PrimeNGConfig) { | 7 | constructor (private config: PrimeNGConfig) { |
9 | this.config.setTranslation({ | 8 | this.config.setTranslation({ |
@@ -73,10 +72,6 @@ export class I18nPrimengCalendarService { | |||
73 | }) | 72 | }) |
74 | } | 73 | } |
75 | 74 | ||
76 | getCalendarLocale () { | ||
77 | return this.calendarLocale | ||
78 | } | ||
79 | |||
80 | getTimezone () { | 75 | getTimezone () { |
81 | const gmt = new Date().toString().match(/([A-Z]+[\+-][0-9]+)/)[1] | 76 | const gmt = new Date().toString().match(/([A-Z]+[\+-][0-9]+)/)[1] |
82 | const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone | 77 | const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone |