Showing
1 changed file
with
4 additions
and
4 deletions
... | ... | @@ -17,7 +17,7 @@ |
17 | 17 | import { TimeService } from '@core/services/time.service'; |
18 | 18 | import { deepClone, isDefined, isUndefined } from '@app/core/utils'; |
19 | 19 | import * as moment_ from 'moment'; |
20 | -import * as monentTz from 'moment-timezone'; | |
20 | +import * as momentTz from 'moment-timezone'; | |
21 | 21 | |
22 | 22 | const moment = moment_; |
23 | 23 | |
... | ... | @@ -846,8 +846,8 @@ let defaultTimezone: string = null; |
846 | 846 | |
847 | 847 | export function getTimezones(): TimezoneInfo[] { |
848 | 848 | if (!timezones) { |
849 | - timezones = monentTz.tz.names().map((zoneName) => { | |
850 | - const tz = monentTz.tz(zoneName); | |
849 | + timezones = momentTz.tz.names().map((zoneName) => { | |
850 | + const tz = momentTz.tz(zoneName); | |
851 | 851 | return { |
852 | 852 | id: zoneName, |
853 | 853 | name: zoneName.replace(/_/g, ' '), |
... | ... | @@ -881,7 +881,7 @@ export function getDefaultTimezoneInfo(): TimezoneInfo { |
881 | 881 | |
882 | 882 | export function getDefaultTimezone(): string { |
883 | 883 | if (!defaultTimezone) { |
884 | - defaultTimezone = monentTz.tz.guess(); | |
884 | + defaultTimezone = momentTz.tz.guess(); | |
885 | 885 | } |
886 | 886 | return defaultTimezone; |
887 | 887 | } | ... | ... |