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
z
zz
Z
ZZ
2020 Update
Some time in the past 5 years, this stopped working. Now try:
var timeZone = moment.tz.guess(); var time = new Date(); var timeZoneOffset = time.getTimezoneOffset(); moment.tz.zone(timeZone).abbr(timeZoneOffset);