Display local timezone name with moment.js
I'm just doing this. The z
in the format adds the proper abbreviation for the timezone.
moment().tz('America/New_York').format('MMMM Do YYYY, h:mm a z');
According to the official moment document, you can use moment-timezone
moment.tz.guess();
For further formatting, refer to this.
Edited :
var zone_name = moment.tz.guess();
var timezone = moment.tz(zone_name).zoneAbbr()
console.log(timezone);
Refer to this working fiddle.