I was trying to use z
or zz
in format to display the timezone at the end of the string and found that it's deprecated. Z
and ZZ
work to display -0700
, but instead I want it to show PDT
.
I got moment-timezone
and the data file, but I can't figure out how to use it to determine the client's local time zone and display something like:
2014-05-30T22:56:23.967 PDT
instead of:
2014-05-30T22:56:23.967
Is it possible to use moment-timezone
to determine EST, CST, MST, PST, etc?
m.tz("America/Toronto").format(); // "2013-11-18T11:55:00-05:00"
. There are a number of utilities that attempt go guess a users timezone based on the timezone offset and whether daylight saving is observed. However they seem to work using the IANA timezone values, not "civil" (ambiguous) values like EST. – Gam