iamkun / iamkun/dayjs

Timezone 'Europe/London' is not working properly

Open
#2,126 4 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

Hi team,
I have used (dayjs().tz('Europe/London').startOf('year').format('YYYY-MM-DD')) method in my project. This method is not working properly with this tz. The output should be (2022-01-01) but I received (2021-01-01).

Can anyone suggest the solution? and Why this issue was occurred?. Thanks in advance

Note: Other timezones are working fine and same method working fine in codesandbox.

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.