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