dayjs icon indicating copy to clipboard operation
dayjs copied to clipboard

Invalid DST for America/Santiago

Open alexmichailichenko opened this issue 3 years ago • 1 comments

Describe the bug Seems like dayjs doesn't take into account that Chile's 2022 DST start is delayed from September 2 to September 11 (Internal Affairs Ministry of Chile informed the DST for America/Santiago to start at midnight on September 11 due to the vote on the new Constitution). America:Santiago

Expected behavior Should return a string with the time 09:00, but returns 2022-09-10T10:00:00-03:00 for 2022-09-10T13:00:00.000Z

Information

  • Day.js Version 1.11.5
  • OS: all
  • Browser all
  • Time zone: America/Santiago

https://github.com/tzinfo/tzinfo-data/issues/22

alexmichailichenko avatar Sep 06 '22 10:09 alexmichailichenko

I'm not 100% sure, but it seems dayjs is using Intl. Intl in browsers relys on system time. Can you please check if OS timezone is correct?

Related artile: https://www.ghacks.net/2022/09/07/windows-users-in-chile-could-run-into-issues-because-of-daylight-savings-time/

Bykiev avatar Sep 09 '22 08:09 Bykiev