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

Z and ZZ tokens should return Z when UTC mode #3117

Open
maggiepint opened this issue Apr 17, 2016 · 2 comments
Open

Z and ZZ tokens should return Z when UTC mode #3117

maggiepint opened this issue Apr 17, 2016 · 2 comments

Comments

@maggiepint
Copy link
Member

Pull request #3098 modified the default format function to return Z as the offset when in UTC mode, pursuant to the ISO8601 specification.

This only occurs when using the default format. As discussed in the pull request itself, it probably makes sense to either change the behavior of the Z and ZZ tokens to work this way as well, or to make a new token that does.

@twentyonesquared
Copy link

Any progress on this?
We're working with an API that expects dateTimes in ISO8601 format (utc). That is 2016-06-10T16:47:00Z but moment returns 2016-06-10T16:47:00+00:00

@billymoon
Copy link

+1

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

Successfully merging a pull request may close this issue.

5 participants