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

America/Mexico_City is 1 hour off #1497

Open
ricardoMogg opened this issue Sep 3, 2023 · 1 comment
Open

America/Mexico_City is 1 hour off #1497

ricardoMogg opened this issue Sep 3, 2023 · 1 comment

Comments

@ricardoMogg
Copy link

Describe the bug
seting a time zone to America/Mexico_City returns -05:00 hour instead of -06:00 .

To Reproduce
Please share a minimal code example that triggers the problem:

let currentDateTime = DateTime.fromMillis(Date.now()).setZone(
      tod.timeZone ?? 'America/Mexico_City',
    );
console.log(currentDateTime

Actual vs Expected behavior
it should give -06:00
it gives -05:00

Desktop (please complete the following information):

  • OS: backend / linux
  • Browser: backend
  • Luxon version 3.3.1
  • Your timezone [e.g. "America/Mexico_city"]

Additional context
Mexico stopped observing day light savings since last year, and this is probably not reflected here.

https://newsus.cgtn.com/news/2022-11-13/Mexico-eliminates-daylight-saving-time-1eUHUADJneU/index.html#:~:text=The%20Mexican%20government%20has%20voted,remain%20permanently%20on%20standard%20time.

@diesieben07
Copy link
Collaborator

Luxon uses the time zone database of the underlying platform through the Intl.DateTimeFormat API.

Most likely you are running an out of date Node.JS version. In my tests Node 12 (12.22.12) is the newest Node version that reports the old offset. Node.JS 12 has been "end of life" since April 2022.

Please clarify which runtime you are using, most likely you need to update it.

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

No branches or pull requests

2 participants