From: Jérôme Benoit Date: Mon, 4 Dec 2023 19:40:31 +0000 (+0100) Subject: build: fix import issue with date-fns X-Git-Tag: v1.2.29~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c7c86b6f88b204031c77b5106a1cf2551359ff52;p=e-mobility-charging-stations-simulator.git build: fix import issue with date-fns Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/Helpers.ts b/src/charging-station/Helpers.ts index 15bd2c1f..492d26aa 100644 --- a/src/charging-station/Helpers.ts +++ b/src/charging-station/Helpers.ts @@ -18,9 +18,9 @@ import { isDate, isPast, isWithinInterval, - maxTime, toDate, } from 'date-fns'; +import { maxTime } from 'date-fns/constants'; import type { ChargingStation } from './ChargingStation'; import { getConfigurationKey } from './ConfigurationKeyUtils'; diff --git a/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts b/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts index a1e4f486..21a6e1ec 100644 --- a/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts +++ b/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts @@ -11,9 +11,9 @@ import { addSeconds, differenceInSeconds, isDate, - maxTime, secondsToMilliseconds, } from 'date-fns'; +import { maxTime } from 'date-fns/constants'; import { create } from 'tar'; import { OCPP16Constants } from './OCPP16Constants';