Skip to content

Commit 3a82d52

Browse files
committed
feat: enhance timezone handling by dynamically generating timezone list
Signed-off-by: Manuel Abascal <mjabascal10@gmail.com>
1 parent 156ef11 commit 3a82d52

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

frontend/src/app/shared/constants/date-timezone-date.const.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import moment from 'moment-timezone';
2+
13
export const DATE_SECTION_ID = 5;
24

35
export const DEFAULT_DATE_SETTING_TIMEZONE = 'UTC';
@@ -51,6 +53,7 @@ export const TIMEZONES: Array<{ label: string; timezone: string; zone: string }>
5153
{label: 'Buenos Aires (ART)', timezone: 'America/Argentina/Buenos_Aires', zone: 'America'},
5254
{label: 'São Paulo (BRT)', timezone: 'America/Sao_Paulo', zone: 'America'},
5355
];*/
56+
5457
export const DATE_FORMATS: Array<{ label: string; format: string; equivalentTo: string }> = [
5558
{label: 'Short', format: 'short', equivalentTo: 'M/d/yy, h:mm a'},
5659
{label: 'Medium', format: 'medium', equivalentTo: 'MMM d, y, h:mm:ss a'},

0 commit comments

Comments
 (0)