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

Wrong Timezone #13

Closed
stevepeak opened this issue Jul 11, 2013 · 2 comments
Closed

Wrong Timezone #13

stevepeak opened this issue Jul 11, 2013 · 2 comments

Comments

@stevepeak
Copy link

time = 1372175640 * 1000
moment(time).tz('America/Chicago').format("YYYY-MM-DD hh:mm A")
"2013-06-25 10:54 AM"
new Date(time).toString()
"Tue Jun 25 2013 10:54:00 GMT-0500 (CDT)"

Chicago is GMT -6, notice the hour is not accurate... This does not seem to be accurate.

@mattjohnsonpint
Copy link
Contributor

Chicago uses Central Standard Time (-6) in the winter, but Central Daylight Time (-5) in the summer.

The result is correct.

@stevepeak
Copy link
Author

I respect all who work on timezone and daylight savings because it is a nightmare. Thanks for the response!

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