-
Notifications
You must be signed in to change notification settings - Fork 837
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
GMT+03:00 Asia/Baghdad instead of Europe/Moscow #290
Comments
@timrwood - While some guesses will certainly be wrong, in this particular case we can fix the problem by using the |
Be careful, the
Note that none of the guessed candidates in |
http://pellepim.bitbucket.org/jstz/ did this right somehow, resolves to UPDATE the latest version did this wrong, but the one I use, 1.0.5, did this right. |
Intl APIs in newer Chrome does work now. They used to resolve incorrectly, but that was fixed awhile back (not sure exactly when). Also, I tested against latest (0.5.13) in IE - which uses the guessing algorithm - and it does now return |
@mj1856 Chrome bug here but marked as Started, not Fixed as of now. https://bugs.chromium.org/p/v8/issues/detail?id=3547 |
@sompylasar - Yeah, that bug is still present. However, I don't think it affects us, since Chrome still correctly returns |
I have
moment.js version : 2.11.1
moment-timezone.js version : 0.5.0
os windows 7
If I set timezone to UTC+3 Moscow, St.Petersburg, Volgograd (RTZ 2) then the following code
"GMT" + moment().format('Z') + ":" + moment.tz.guess()
will produce
GMT+03:00:Asia/Baghdad
expected result is
GMT+03:00:Europe/Moscow
http://jsfiddle.net/3javhx7k/2/
navigator.appVersion is "5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.91 Safari/537.36"
The text was updated successfully, but these errors were encountered: