The luxon library adds this feature to get the offsetNameLong
acc. to timezone ianaName which provides a locale specific translated zone name. For instance
DateTime.local().setLocale("en-US").setZone("America/Los_Angeles").offsetNameLong // prints Pacific Daylight Time
DateTime.local().setLocale("ja-JP").setZone("America/Los_Angeles").offsetNameLong // prints アメリカ太平洋夏時間
Because of luxon
less IE browser support(unless using polyfills), I'd like to do something similar using moment-timezone
. I'm just curious if moment-timezone
provides a similar feature to do the same, or, any other alternative to achieve this functionality.