ocpi / ocpi

The Open Charge Point Interface (OCPI) allows for a scalable, automated roaming setup between Charge Point Operators and e-Mobility Service Providers. It supports authorisation, charge point information exchange (incl transaction events), charge detail record exchange and finally, the exchange of smart-charging commands between parties.
Other
452 stars 205 forks source link

2.1.1 - TariffRestrictions - start_time\date, end_time\date - UTC or Local time zone? #495

Open LiorBenAri opened 1 month ago

LiorBenAri commented 1 month ago

Hi,

In version 2.1.1 of the protocol, the TariffRestrictions object includes properties such as start_time, start_date, end_time, and end_date. Do their values represent UTC time or the local time zone (as defined by the Location)? In versions 2.2 and 2.2.1, it is specifically mentioned that they are in the local time zone, but in 2.1.1, there is no mention of the time zone.

Thanks.

reinierl commented 1 month ago

It makes most sense to me if those would be local time. Even more so if 2.2 and 2.2.1 explicitly state that.

If it was UTC that would have strange consequences, like having opening times span across midnight UTC, and having to update opening times every time the clock is adjusted for daylight savings time.

LiorBenAri commented 1 month ago

Thanks @reinierl for your answer.