Ocpp: start schedule in the past (#16263) (#16430)

This commit is contained in:
kad49007 2024-09-30 19:28:00 +02:00 • committed by GitHub
parent 50bbeeafcb
commit fdbae2c8c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -309,7 +309,7 @@ func (c *OCPP) createTxDefaultChargingProfile(current float64) *types.ChargingPr
ChargingProfilePurpose: types.ChargingProfilePurposeTxDefaultProfile,
ChargingProfileKind: types.ChargingProfileKindAbsolute,
ChargingSchedule: &types.ChargingSchedule{
StartSchedule: types.Now(),
StartSchedule: types.NewDateTime(time.Now().Add(-time.Minute)),
ChargingRateUnit: c.cp.ChargingRateUnit,
ChargingSchedulePeriod: []types.ChargingSchedulePeriod{period},
},