Open azampagl opened 2 years ago
I am also experiencing problems with it. Thanks for creating an entry for this.
My temporary solution is to use dayjs().utcOffset(-6)
This is not a dayjs issue, but a Intl issue and should be fixed there (wherever this may be :-).
Duplicate of issue #2107 ?
I think Intl is where the problem exists, they supposedly use IANA database and this appears to be updated (https://time.is)
Describe the bug I'm not sure if this is a day.js bug or a native browser Internationalization API bug, but the time zone database seems to be out of date.
For example, if you apply the following timezone in day.js
dayjs.tz('2022-11-08 13:00:00', 'America/Ojinaga')
You will get an offset of UTC -7.
Expected behavior
The offset should be UTC -6.
https://timezonedb.com/time-zones/America/Ojinaga
(They city of Ciudad Juárez, Mexico recently changed this)
If day.js is not the proper place to report this bug, do you know where to file a bug report for the Internationalization API?
Information