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
After searching a lot, this seems to work.
const t = moment.tz.guess(); timeZone = moment.tz(t).zoneAbbr();;