dayjs('2021-41', 'YYYY-WW') returns Jan 1, 2021
Open
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
dayjs('2021-41', 'YYYY-WW') returns Jan 1, 2021
Plugins included: customParseFormat, advancedFormat, isoWeek
**Expected behavior**
Should return Thu Oct 14 2021
**Information**
- Day.js Version: 1.10.7
- OS: macos / osx
- Browser: chrome 94
- Time zone: GMT+2 DST
Contributor guide
Research direction
Reproduce the parsing case with customParseFormat, advancedFormat, and isoWeek using dayjs('2021-41', 'YYYY-WW'). Trace the week-format parsing path and verify that the result is Thu Oct 14 2021 rather than Jan 1, 2021, including coverage for the reported input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100