Fix typo
This commit is contained in:
parent
1e8fc7086b
commit
393e3f64f7
@ -17,7 +17,7 @@
|
|||||||
import { TimeService } from '@core/services/time.service';
|
import { TimeService } from '@core/services/time.service';
|
||||||
import { deepClone, isDefined, isUndefined } from '@app/core/utils';
|
import { deepClone, isDefined, isUndefined } from '@app/core/utils';
|
||||||
import * as moment_ from 'moment';
|
import * as moment_ from 'moment';
|
||||||
import * as monentTz from 'moment-timezone';
|
import * as momentTz from 'moment-timezone';
|
||||||
|
|
||||||
const moment = moment_;
|
const moment = moment_;
|
||||||
|
|
||||||
@ -846,8 +846,8 @@ let defaultTimezone: string = null;
|
|||||||
|
|
||||||
export function getTimezones(): TimezoneInfo[] {
|
export function getTimezones(): TimezoneInfo[] {
|
||||||
if (!timezones) {
|
if (!timezones) {
|
||||||
timezones = monentTz.tz.names().map((zoneName) => {
|
timezones = momentTz.tz.names().map((zoneName) => {
|
||||||
const tz = monentTz.tz(zoneName);
|
const tz = momentTz.tz(zoneName);
|
||||||
return {
|
return {
|
||||||
id: zoneName,
|
id: zoneName,
|
||||||
name: zoneName.replace(/_/g, ' '),
|
name: zoneName.replace(/_/g, ' '),
|
||||||
@ -881,7 +881,7 @@ export function getDefaultTimezoneInfo(): TimezoneInfo {
|
|||||||
|
|
||||||
export function getDefaultTimezone(): string {
|
export function getDefaultTimezone(): string {
|
||||||
if (!defaultTimezone) {
|
if (!defaultTimezone) {
|
||||||
defaultTimezone = monentTz.tz.guess();
|
defaultTimezone = momentTz.tz.guess();
|
||||||
}
|
}
|
||||||
return defaultTimezone;
|
return defaultTimezone;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user