From 6bc379fd10b73977210275a2eb748a762b27f136 Mon Sep 17 00:00:00 2001 From: Mark Pittaway Date: Wed, 14 Dec 2022 17:52:41 +1100 Subject: [PATCH] fix(client): Change moment import to moment-timezone --- client/components/Datetime/index.tsx | 2 +- client/components/Events/EventScheduleInput/index.tsx | 2 +- client/components/UI/Form/DateInput/DateInputPopup.tsx | 2 +- client/utils/events.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/components/Datetime/index.tsx b/client/components/Datetime/index.tsx index 5e8419963..37b1a7a14 100644 --- a/client/components/Datetime/index.tsx +++ b/client/components/Datetime/index.tsx @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import moment from 'moment'; +import moment from 'moment-timezone'; import classNames from 'classnames'; import {appConfig} from 'appConfig'; diff --git a/client/components/Events/EventScheduleInput/index.tsx b/client/components/Events/EventScheduleInput/index.tsx index 34ac1b800..31fd459aa 100644 --- a/client/components/Events/EventScheduleInput/index.tsx +++ b/client/components/Events/EventScheduleInput/index.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import moment from 'moment'; +import moment from 'moment-timezone'; import {IEventItem, IEventFormProfile} from '../../../interfaces'; import {superdeskApi} from '../../../superdeskApi'; diff --git a/client/components/UI/Form/DateInput/DateInputPopup.tsx b/client/components/UI/Form/DateInput/DateInputPopup.tsx index 453ddd6d4..096b339fb 100644 --- a/client/components/UI/Form/DateInput/DateInputPopup.tsx +++ b/client/components/UI/Form/DateInput/DateInputPopup.tsx @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import moment from 'moment'; +import moment from 'moment-timezone'; import {Popup, Content, Header, Footer} from '../../Popup'; import {Button} from '../../'; import {DayPicker} from './DayPicker'; diff --git a/client/utils/events.ts b/client/utils/events.ts index 3691a7452..ba48b1264 100644 --- a/client/utils/events.ts +++ b/client/utils/events.ts @@ -1,4 +1,4 @@ -import moment from 'moment'; +import moment from 'moment-timezone'; import RRule from 'rrule'; import {get, map, isNil, sortBy, cloneDeep, omitBy, find, isEqual, pickBy, flatten} from 'lodash'; import {IMenuItem} from 'superdesk-ui-framework/react/components/Menu';