iamkun / iamkun/dayjs

utcOffset returned value is wrong

Open
#2,758 0 comments 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**
`dayjs('2024-10-27T00:59:00Z').tz(this.timezone).utcOffset() ` should be 120 but got 180 instead

**Expected behavior**
The value should be and was 120 but now it's 180.

**Information**
- Day.js Version [1.11.13]
- OS: [iOS]

Contributor guide

Open the contributing guide

Research direction

Use the reported dayjs('2024-10-27T00:59:00Z').tz(this.timezone).utcOffset() call as the entry point and reproduce the discrepancy in version 1.11.13. Trace the timezone offset handling around this call; done means the example returns 120 rather than 180 without breaking related offset behavior.

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
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.