-
Notifications
You must be signed in to change notification settings - Fork 9
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
ISO UTC DateTime can have an hour of 0 #6
Comments
Urk - I think we're being bitten by a variant of this bug(/weird interpretation of the spec): https://twitter.com/krisajenkins/status/785479254872039424
|
We were formatting the date incorrectly, in a way that *mostly* works in Chrome/Node. Then we accounted for the "mostly" part incorrectly, by adjusting the hour for daylight saving time.
As soon as the build verifies, I'll publish this fix as 25.13.1. Thanks for the report @pellagic-puffbomb! |
Sure! Thanks for the quick turnaround! |
Hello!
Thanks for releasing this library!
I ran into a problem when trying to use it to encode an object with UTC dates, because I have an object with a date field that looks like this:
When this gets encoded back into JSON, it passes through this line, and it ends up looking like this (that's a negative one, which gets rejected by the server):
When I found the line above, I thought, okay I'll just send in a patch and handle subtracting back to the previous day, but then I stopped when I realized I didn't know why we're subtracting one from the hour there?
The text was updated successfully, but these errors were encountered: