From: Jérôme Benoit Date: Sat, 13 Jan 2024 10:34:00 +0000 (+0100) Subject: fix: ensure more date iso string are converted to Date X-Git-Tag: v1.2.32~29 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=48c7e1d6db4b3cbf82d17e191b2255066c462a71;p=e-mobility-charging-stations-simulator.git fix: ensure more date iso string are converted to Date Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts b/src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts index 51cbbd16..bd96c4b3 100644 --- a/src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts +++ b/src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts @@ -165,6 +165,8 @@ export class OCPP16ServiceUtils extends OCPPServiceUtils { chargingStation.getConnectorStatus(connectorId)!.chargingProfiles = [] } // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + cp.chargingSchedule.startSchedule = convertToDate(cp.chargingSchedule.startSchedule)! + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion cp.validFrom = convertToDate(cp.validFrom)! // eslint-disable-next-line @typescript-eslint/no-non-null-assertion cp.validTo = convertToDate(cp.validTo)!