luxon

Detect timezone abbreviation using luxon

匆匆过客 提交于 2020-07-30 08:08:09
问题 Moment timezone results with short timezone abbreviations, e.g moment.tz([2012, 0], 'America/New_York').format('z'); // EST moment.tz([2012, 5], 'America/New_York').format('z'); // EDT Is there a similar way we can achieve that using luxon I tried offsetNameShort , but, it results to GMT+5:30 for a date like "2020-05-23T13:30:00+05:30" Something like DateTime.fromISO(""2020-05-23T13:30:00+05:30"").toFormat('z') doesn't work either Is there a way we can remove the +5:30 timezone from the