Update OCPP date only when not provided
MODIFY
src/server/ocpp/services/OCPPService.ts
src/server/ocpp/services/OCPPService.ts
@@ -2064,7 +2064,7 @@ export default class OCPPService {
// Enrich Request
ocppRequest.chargeBoxID = chargingStation.id;
ocppRequest.timezone = Utils.getTimezone(chargingStation.coordinates);
- if (withTimeStamp) {
+ if (withTimeStamp && !ocppRequest.timestamp) {
ocppRequest.timestamp = new Date();
}
}

Update OCPP date only when not provided