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

isoDateTime should include timezone (or UTC) #21

Closed
Krinkle opened this issue Jun 26, 2014 · 1 comment
Closed

isoDateTime should include timezone (or UTC) #21

Krinkle opened this issue Jun 26, 2014 · 1 comment

Comments

@Krinkle
Copy link

Krinkle commented Jun 26, 2014

Right now, using dateFormat isoDateTime produces:

 Date: 2014-06-27T00:37:07

Which is confusing because it applied my local time zone (UTC +02:00) but also left out any timezone indication. This is imho invalid ISO. It should use UTC and include a Z at the end, or include the indication for the timezone used.

@ctavan
Copy link
Collaborator

ctavan commented Sep 4, 2014

dateformat() doesn't really play well with timezones since the javascript Date() object itself doesn't really play well with timezones.

If you need to work with timezone-aware dates I suggest using a more sophisticated library such as moment.js.

Would that be a viable alternative for you? If not feel free to re-open this issue.

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

No branches or pull requests

2 participants