moment / luxon

⏱ A library for working with dates and times in JS
https://moment.github.io/luxon
MIT License
15.05k stars 730 forks source link

Timezone 'CST' is unsupported in Firefox browser #1593

Closed ilia-butovskii closed 4 months ago

ilia-butovskii commented 4 months ago

Describe the bug Timezone 'CST' is unsupported in Firefox browser, but it works in Safari, Chrome and Node

To Reproduce In Firefox

DateTime.local().setZone('CST').toISODate()

or

DateTime.fromISO('2024-02-09',  { zone: 'CST' }).toISODate()

Actual Throws error Error: Invalid DateTime: unsupported zone: the zone "CST" is not supported

Expected Set UTC−06:00 timezone

Desktop (please complete the following information):

diesieben07 commented 4 months ago

new Intl.DateTimeFormat('de', {timeZone: 'CST'}).format() throws the same exception. You will have to speak to the Firefox developers about this.