Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone DB Bug #2121

Open
azampagl opened this issue Nov 9, 2022 · 4 comments
Open

Timezone DB Bug #2121

azampagl opened this issue Nov 9, 2022 · 4 comments

Comments

@azampagl
Copy link

azampagl commented Nov 9, 2022

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

  • Day.js Version: 1.11.6
  • OS: All
  • Browser 107.0.5304.107 (Official Build) (64-bit)
  • Time zone: 11/9/2022 6:51 AM EST
@jacsamg
Copy link

jacsamg commented Nov 9, 2022

I am also experiencing problems with it. Thanks for creating an entry for this.

My temporary solution is to use dayjs().utcOffset(-6)

@BePo65
Copy link
Contributor

BePo65 commented Nov 11, 2022

This is not a dayjs issue, but a Intl issue and should be fixed there (wherever this may be :-).

@BePo65
Copy link
Contributor

BePo65 commented Nov 11, 2022

Duplicate of issue #2107 ?

@jsanchez-innomius
Copy link

I think Intl is where the problem exists, they supposedly use IANA database and this appears to be updated (https://time.is)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants