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

weekOfYear 'week' method doesn't seems to handle week number 53 for 'nb' locale #1477

Open
chrfalch opened this issue Apr 29, 2021 · 0 comments

Comments

@chrfalch
Copy link

Describe the bug
Similar to the issue mentioned in #956, with a dutch locale (nl), the week number on the end of the year is incorrect.
Similar to the issue mentioned in #1030, with a dutch locale (fr), the week number on the end of the year is incorrect.

Expected behavior
When selecting the 'nb' locale and trying to return the weeknumber via days('2020-12-31').week(), the number returned is 1, while dutch calenders are supposed to return 53.

Information
Day.js Version: [v1.10.4]
OS: [MacOS]
Browser [Chrome 90]
Time zone: [CEST]

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

Successfully merging a pull request may close this issue.

1 participant