I need a way to detect the timezone of a given date object. I do NOT want the offset, nor do I want the full timezone name. I need to get the timezone abbreviation.
moment-timezone includes an undocumented method .zoneAbbr()
which returns the time zone abbreviation. This also requires a set of rules which are available to select and download as needed.
Doing this:
Returns:
'PDT' // As of this posting.
Evan Czaplicki has worked on a draft proposal to add a time zone API to browsers.