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 America/Monterrey not properly updated to UTC-5 #1055

Closed
perlucas opened this issue Apr 10, 2023 · 7 comments
Closed

Timezone America/Monterrey not properly updated to UTC-5 #1055

perlucas opened this issue Apr 10, 2023 · 7 comments

Comments

@perlucas
Copy link

Environment

Run on Mac OS Monterey v12.5.1

{
  moment: '2.29.4',
  momentTz: '0.5.43',
  date: 'Mon Apr 10 2023 16:43:17 GMT-0300 (Argentina Standard Time)',
  intlZone: 'America/Buenos_Aires'
}

Issue description

On April 2nd, the "America/Monterrey" timezone shifted from UTC-6 to UTC-5, but running the code below still gives me 8:00 AM. It should be 9:00 AM.

moment("2023-04-04T14:00:00.000Z").tz("America/Monterrey").format('h:mm A')

Screen Shot 2023-04-10 at 16 48 29

@aldinicontini
Copy link

Yes, same issue

@gilmoreorless
Copy link
Member

On April 2nd, the "America/Monterrey" timezone shifted from UTC-6 to UTC-5

Last year, Mexico got rid of daylight saving time in most (but not all) states/regions. https://www.timeanddate.com/news/time/mexico-abolishes-dst-2022.html
Only some of the towns right on the border with USA will continue with DST. Monterrey is not one of those towns, so it is on UTC-6 all year round: https://www.timeanddate.com/time/change/mexico/monterrey
Therefore, this code is correct.

@mauricio-testa
Copy link

Mexico time is also wrong
image

@gilmoreorless
Copy link
Member

@mauricio-testa That screenshot doesn't really tell me anything. You could be running a completely different version of moment-timezone from the opening post in this issue — one that's older and doesn't have the updated zone rules. Running that same code in the console on https://momentjs.com gives the correct offset of -06:00.

@AlejandroAlt
Copy link

@perlucas did you solve it? I have a similar problem with America/Mexico_City.

@BilalTariq01
Copy link

@AlejandroAlt Latest release (0.5.43) has updated America/Mexico_City timezone

@mexchip
Copy link

mexchip commented Apr 30, 2023

The minimum required version for the America/Mexico_City DST update is 0.5.39.

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

7 participants