iamkun / iamkun/dayjs

add not woking properly when DST involved

Open
#2,112 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

`dayjs("11-01-2022").tz("America/Boise", true).add(1, "month").toDate()`
`dayjs("12-01-2022").tz("America/Boise", true).toDate()`
Expected:
Should return same Value
Current:
Getting different values for both

Contributor guide

Open the contributing guide

Research direction

The issue provides a reproducible pair of Day.js expressions using America/Boise, DST, and add(1, "month"), but names no files or tests. Start by running that reproduction and tracing the timezone and month-addition implementation. Done means both expressions produce the same value, with a regression test covering the case.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.