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

Time Offset of "Asia/Tehran" is wrong #42

Closed
mattjohnsonpint opened this issue Oct 28, 2013 · 3 comments
Closed

Time Offset of "Asia/Tehran" is wrong #42

mattjohnsonpint opened this issue Oct 28, 2013 · 3 comments
Labels

Comments

@mattjohnsonpint
Copy link
Contributor

Timezone "Asia/Tehran" is +03:30 which should have time offset +0330
Actually, all timezones with +/-xx:30 have the same issue.
Check

moment().tz("Asia/Tehran").format("ZZ")
"+0350"

The result of two statements below should be the same, but there 20 min different.

var now = moment().tz("Asia/Tehran").format("YYYY-MM-DD HH:mm ZZ")
console.log(now);
"2013-10-28 14:26 +0350"

var another_now = moment(now).tz("Asia/Tehran").format("YYYY-MM-DD HH:mm ZZ")
console.log(another_now);
"2013-10-28 14:06 +0350"
@mattjohnsonpint
Copy link
Contributor Author

Migrated from moment/moment#1229

@morningbzy
Copy link

Thanks for moving it. :)

@timrwood
Copy link
Member

This is fixed with the new data format and #93 and will go out in the 0.1.0 release.

http://jsfiddle.net/timrwood/dHyb7/1/

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

No branches or pull requests

3 participants