Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The transition from CEST (UTC+2) to CET(UTC+1) is wrong #2678

Open
weiting-1993 opened this issue Jun 12, 2024 · 0 comments
Open

The transition from CEST (UTC+2) to CET(UTC+1) is wrong #2678

weiting-1993 opened this issue Jun 12, 2024 · 0 comments

Comments

@weiting-1993
Copy link

weiting-1993 commented Jun 12, 2024

Describe the bug

The offset for '2024-10-27T01:01:00Z' was 0.

Screenshot 2024-06-12 at 19 02 59
const offset = dayjs(Date.now()).tz(DayjsTimezone.EUROPE_BERLIN).utcOffset();
return offset === 60 ? CentralEuropeanTimezone.CET : CentralEuropeanTimezone.CEST;

Expected behavior

The offset for '2024-10-27T01:01:00Z' should be 60.

Information

  • Day.js Version [v1.11.10]
  • OS: [macOS Sonoma 14.5]
  • Browser [irrelevant]
  • Time zone: [Europe/Berlin]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant