dayjs icon indicating copy to clipboard operation
dayjs copied to clipboard

Fix: Advanced format output with short offset name

Open klm-turing opened this issue 10 months ago • 1 comments

  • Used of long timezone name by default in Intl.DateTimeFormat
  • Extract and cached short offset name from the long one in the offsetName function
  • Writing related unit test

This fix 1713 issue

klm-turing avatar Apr 23 '24 16:04 klm-turing

Thanks for adding this! I definitely could use this in a moment migration. @iamkun - curious if we can get this in?

Alternatively, have we considered replicating moment-timezone's zoneAbbr functionality? https://momentjs.com/timezone/docs/#/using-timezones/formatting/

et avatar May 20 '24 20:05 et