iamkun / iamkun/dayjs

Invalid DST for America/Santiago

Open
#2,057 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

**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](https://user-images.githubusercontent.com/3906600/188609854-3660d740-e804-4aa6-be61-7b8d714d6007.png)

**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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the America/Santiago conversion described for Day.js 1.11.5 and compare it with the linked tzinfo-data issue. Trace the timezone handling involved in that conversion; done means the 2022-09-10T13:00:00.000Z input produces the expected 09:00 result for the delayed Chilean DST start.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
internationalization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.