-
Notifications
You must be signed in to change notification settings - Fork 126
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
Parsing of local timestamps not supported - spec violation? #237
Comments
Update: noticed that |
RFC3339 indeed doesn't support a timestamp without explicit timezone and I oversimplified the ISO8601 support, due to it actually being a huge collection of different formats (see https://ijmacd.github.io/rfc3339-iso8601/). I'd fix this by supporting all ISO8601 via an external lib. Shouldn't break anything and instead add more flexibility. |
That would imho be preferable over a fallback global format 👍🏻 |
Added the improved ISO8601 parsing. The |
Problem remains that this approach does not allow to mix different charge points. The format should be per CP instead of global in order to be useful beyond the most basic case? |
You expect sending timestamps in different formats to different clients? Why? By sending an ISO-formatted timestamp to all of them it wouldn't cause any issue, assuming the charge points implement the spec correctly. |
Please don't get me wrong- I haven't seen this particular issue in the wild yet.
If that wasn't the case, the global fallback setting would not be needed at all, right? |
Totally true for servers. The fallback was originally meant for charge points, in case a vendor wishes to enforce a specific format of the ISO standard. I'm really hoping to keep this as simple as possible tbh. If this is ever needed I can think of two ways to make this dynamic though:
|
Oh yeah, I've had our server use case in mind. Let's solve this when it really becomes a problem. Thank you for all the efforts spend with maintaining this great library! |
In evcc-io/evcc#10399 we've noticed that timestamps in the form of are rejected:
evcc-io/evcc#10399 (comment) found:
This seems to indicate that parsing local time zone should be possible, too?
The text was updated successfully, but these errors were encountered: