moment / moment-timezone

Timezone support for moment.js
momentjs.com/timezone
MIT License
3.83k stars 838 forks source link

"America/Santiago" timezone problem #210

Closed gv-rayalab closed 9 years ago

gv-rayalab commented 9 years ago

Chile is now excempt from the Daylight Saving time, so the time in the new 0.3.1 version is wrong.

mattjohnsonpint commented 9 years ago

This was done in tzdb 2015a. This isn't linked from the home page, but is available if you pull from the github repo.

Admittedly, we need to do a better job of staying on top of tzdb updates. #205 is still pending for 2015c, and already 2015d is out and needs packaging.

yankopetrov commented 5 years ago

Is this fixed? I am getting wrong offset for America/Santiago with 0.5.23

utc: 2019-04-22T12:00:00Z
America/Santiago: 2019-04-22T08:00:00-04:00

At the moment the correct DST offset is -03:00

Chile Summer Time
Time zone in Santiago, Chile (GMT-3)
Tuesday, 2 April 2019, 05:05
tomerb15 commented 3 years ago

I'm using the latest moment and moment-timezone: "moment": "^2.29.1", "moment-timezone": "^0.5.32"

and

moment().tz("America/Santiago").format()

Is returning 2021-01-08T19:28:30-03:00 while its actually 2021-01-08T18:28:30-04:00

**In case someone else is encountering this issue.

America/Santiago refers to Chile and not Dominican Republic**

mattjohnsonpint commented 3 years ago

@yankopetrov - In 2019 the change from UTC-3 to UTC-4 occurred on April 7th, so the conversion is correct. https://www.timeanddate.com/time/zone/chile/santiago?year=2019

@tomerb15 - In 2021, the offset for January is indeed UTC-3, so again the conversion is correct. https://www.timeanddate.com/time/zone/chile/santiago?year=2021

lfelguetac commented 3 years ago

La hora de verano en Chile se produce el primer sábado de septiembre y finaliza el primero sábado de abril. Moment con timezone me entrega una isDST equivocado.