Skip to content
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

Add iso8601 support #241

Merged
merged 2 commits into from
Oct 30, 2023
Merged

Add iso8601 support #241

merged 2 commits into from
Oct 30, 2023

Conversation

lorenzodonini
Copy link
Owner

Previous support was only for the timestamps including a timezone (RFC3339-like), which is technically incorrect as the OCPP spec expects ISO 8601 timestamps, which can have a variety of different formats.

The PR adds better ISO 8601 support for parsing timestamps in incoming messages. This is achieved leveraging the https://github.com/relvacode/iso8601 lib.

Signed-off-by: Lorenzo <lorenzo.donini90@gmail.com>
Signed-off-by: Lorenzo <lorenzo.donini90@gmail.com>
@lorenzodonini lorenzodonini linked an issue Oct 30, 2023 that may be closed by this pull request
@lorenzodonini lorenzodonini merged commit bc0ceee into master Oct 30, 2023
4 checks passed
@lorenzodonini lorenzodonini deleted the 237-full-iso8601-support branch October 30, 2023 21:14
@andig
Copy link
Contributor

andig commented Nov 20, 2023

@lorenzodonini may be time for a new release? Lots of good stuff included :)

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

Successfully merging this pull request may close these issues.

Parsing of local timestamps not supported - spec violation?
2 participants