You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am outputting different times depending on timezones, and it works until I apply a format to them, the it output UTC0 time.
What I am testing is:
console.log(timezone);
console.log(moment().tz(timezone).zone());
console.log(moment().tz(timezone).format());
console.log(moment().tz(timezone).format('MMMM Do YYYY, h:mm:ss a'));
and the results are:
Europe/Berlin
-60
2014-02-20T11:09:56+01:00
February 20th 2014, 11:09:56 am
Asia/Chongqing
-480
2014-02-20T11:09:56+08:00
February 20th 2014, 11:09:56 am
Asia/Seoul
-540
2014-02-20T11:09:56+09:00
February 20th 2014, 11:09:56 am
Asia/Singapore
-480
2014-02-20T11:09:56+08:00
February 20th 2014, 11:09:56 am
America/Sao_Paulo
180
2014-02-20T11:09:56-03:00
February 20th 2014, 11:09:56 am
I am using the latest versions of moment, moment-timezone and the complete set of data.
The text was updated successfully, but these errors were encountered:
One issue may be that the version on the momentjs.com website is not actually the latest version; can you make sure you try the one on the master branch here? (@mj1856 - we should really do something about that.)
I am outputting different times depending on timezones, and it works until I apply a format to them, the it output UTC0 time.
What I am testing is:
and the results are:
I am using the latest versions of moment, moment-timezone and the complete set of data.
The text was updated successfully, but these errors were encountered: