iamkun / dayjs

⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
https://day.js.org
MIT License
46.98k stars 2.3k forks source link

dayjs tz time zone error #2445

Open ghost opened 1 year ago

ghost commented 1 year ago

timezone.js:1 Uncaught RangeError: Invalid time zone specified: AEST at new DateTimeFormat () image

Pareder commented 1 year ago

@3s-hiep Because you need to provide time zone identified (name), not a time zone abbreviation (https://day.js.org/docs/en/timezone/timezone). For example Australia/ACT, Australia/Brisbane, etc.