week使用没有到达预期效果,看起来可能是个bug
Open
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
取week的时候,日期错误,例如`dayjs().week(1)`,结果错误
`dayjs("2022-8-8").week(1).format("YYYY-MM-DD") //2021-12-27 `
`dayjs("2022-8-9").week(1).format("YYYY-MM-DD") //2021-12-28`
Contributor guide
Research direction
Start by reproducing the two dayjs().week(1) examples from the issue and inspect the week-handling entry point. Determine the expected week-1 dates for the supplied inputs, then verify that the behavior is corrected and covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100