iamkun / iamkun/dayjs

weekOfYear week method doesn't seems to handle week number 53 for 'de-ch' locale

Open
#3,049 2 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**
I have an issue with the dayjs week() method compared with the moment.js one.
My issue is probably linked to this one https://github.com/iamkun/dayjs/issues/3048

**Expected behavior**
I tried with that date: 2020-12-31, which is supposed to be a day in the week number 53. (if i refer to this http://www.whatweekisit.org/). But it returns week number as 1

**Information**
- Day.js Version [e.g. v1.11.20]
- OS: [Mac OS]
- Browser [Chrome 147]
- Time zone: [Central European Summer Time]

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.