weekOfYear week method doesn't seems to handle week number 53 for 'pt-br' locale
- 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: [Brasília Time]
Contributor guide
Research direction
Start by reproducing the week() result for 2020-12-31 under the pt-br locale and compare it with the expected week 53 behavior described in the issue. Read the related issue 3048 for context, then trace the week() and locale handling entry points. Done means the reported date returns the correct week number without regressing other locale behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100