moment / luxon

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

The System zone is undefined #1516

Open azhiv opened 9 months ago

azhiv commented 9 months ago

Describe the bug DateTime.local().zone.name returns undefined on the new MacOS Sonoma in all chromium-based browsers.

To Reproduce DateTime.local().zone.name

Actual vs Expected behavior I expect this statement to return the system timezone whatever it is.

Desktop (please complete the following information):

Additional context For some users the bug cannot be reproduced. If you google Intl.DateTimeFormat().resolvedOptions().timeZone is empty Sonoma you'll see this is a common issue which breaks even the Spotify web site.

supercooltest commented 3 months ago

Note that chromium has fixed this: https://issues.chromium.org/issues/40069710