8000 Add Time Zone to the CDR Location in OCPI 3 · Issue #517 · ocpi/ocpi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add Time Zone to the CDR Location in OCPI 3 #517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
chargePanelAndreas opened this issue Dec 18, 2024 · 0 comments
Open

Add Time Zone to the CDR Location in OCPI 3 #517

chargePanelAndreas opened this issue Dec 18, 2024 · 0 comments

Comments

@chargePanelAndreas
Copy link

Tariffs may contain date and time restrictions, these are in local time zone. All the timestamps on the session and charging periods are in UTC. In order to compare the timestamps with the restrictions in the Tariffs we need to know what the local timezone is. This is present on the Location object but NOT on the CDR Location. This means that the CDR does not contain all the information form the Location that is needed to calculate the costs.

Time zone can be derived from the coordinates but that would force every OCPI implementation to depend on such a service.

I suggest, perhaps a bit late in the game, that Time zone from the Location object is included in the CDR Location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0