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
formatISO omitting final Z
character in dates
#1559
Comments
just noticing this too. isn't the whole point of iso8601 that it must have a time-zone specified also? |
Hmm, back then we only took the date, time, and datetime as the scope (see http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm). We can add timezone if it is needed. WDYT @leshakoss?
EDIT: nvm I was silly. |
I believe the full output should contain the timezone. I didn't think about that when I was looking at the PR. Not sure how it fits the API though. |
I can work on this issue, this weekend. My plan is if the passed option is |
Perhaps along the same lines - doesn't seem possible to use format with UTC either. See this SO post https://stackoverflow.com/questions/58561169/date-fns-how-do-i-format-to-utc |
An ISO date should have either a time offset or
Z
appended to the end. Omitting thisZ
character causes the date as being relative to the host machine's timezone. When performing operations across time zones, this is problematic.The text was updated successfully, but these errors were encountered: