-
Notifications
You must be signed in to change notification settings - Fork 838
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
Moment converting wrong time. #378
Comments
Refer to: And in general, you should prefer canonical locality-based zone identifiers rather than legacy links. |
Also, your code would be slightly cleaner as: moment.tz('2016-09-01T18:04:01Z', 'Canada/Eastern').format(); Not that the other way is wrong, just it has an interim state where the moment is in local time. This way the moment is constructed in the original time zone. |
@mj1856 Ok thanks for the info. By the way I was using |
@mahadazad - there's an item open for that in #227. We currently aren't working on it actively, but will always take a PR if someone is inclined to attempt it. :) |
Hello I am trying to convert UTC time to "Canada/Eastern" and its converting time one hour behind
> moment('2016-09-01T18:04:01Z').tz('Canada/Eastern').format();
> "2016-09-01T14:04:01-04:00"
but the actual time should bd 15:04:01
http://www.timeanddate.com/worldclock/converted.html?iso=20160901T1805&p1=0&p2=286
The text was updated successfully, but these errors were encountered: