build: fix import issue with date-fns
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 4 Dec 2023 19:40:31 +0000 (20:40 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 4 Dec 2023 19:40:31 +0000 (20:40 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/Helpers.ts
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts

index 15bd2c1f48cfb86438636f3f245c1d36912cca7c..492d26aa10dbeb5a5d028e1a7d6d111c291ac368 100644 (file)
@@ -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';
index a1e4f4869036cd32c0330af60a9f1b05ce1ce23f..21a6e1ece5b377925ba469643740f73e2c9f1554 100644 (file)
@@ -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';