iamkun / iamkun/dayjs

Wrong offset for Europe/Berlin

Open
#2,867 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**
The offset for Europe/Berlin after transition from CEST to CET is wrong.

**Expected behavior**
2024-10-27 and the date onward to have offset 60 instead of 120.
dayjs('2024-10-17T22:00:00Z').tz('Europe/Berlin').add(30, 'day')
expected: `2024-11-16T23:00:00.000Z`
received: `2024-11-16T22:00:00.000Z`

Image

**Information**
- Day.js Version [v1.11.13]

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.