Put the endedAt date on CDR instead of startedAt
MODIFY
src/server/ocpi/ocpi-services-impl/ocpi-2.1.1/OCPIMapping.ts
src/server/ocpi/ocpi-services-impl/ocpi-2.1.1/OCPIMapping.ts
@@ -707,7 +707,7 @@ export default class OCPIMapping {
private static buildChargingPeriod(consumption: Consumption): OCPIChargingPeriod {
const chargingPeriod: OCPIChargingPeriod = {
- start_date_time: consumption.startedAt,
+ start_date_time: consumption.endedAt,
dimensions: []
};
if (consumption.consumptionWh > 0) {

Put the endedAt date on CDR instead of startedAt