From fdbae2c8c66beddff7df840b6c710188fffab33e Mon Sep 17 00:00:00 2001 From: kad49007 Date: Mon, 30 Sep 2024 19:28:00 +0200 Subject: [PATCH] Ocpp: start schedule in the past (#16263) (#16430) --- charger/ocpp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charger/ocpp.go b/charger/ocpp.go index 34bb02b1bf..73048b263c 100644 --- a/charger/ocpp.go +++ b/charger/ocpp.go @@ -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}, },