iamkun / iamkun/dayjs

utcOffset(): inconsistent results related to DST?

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

```
console.log(dayjs('2022-11-07 16:07:37.293+02:00').utcOffset()); // returns 60
console.log(dayjs('2022-10-30 16:07:37.293+02:00').utcOffset()); // returns 120
```

**Expected behavior**
Should the above expressions return the same offset?

**Information**
Day.js Version: v1.11.6
OS: ubuntu 22.04
Browser: Chrome 106.0.5249.61
Time zone: +1 (Europe/Paris)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.