iamkun / iamkun/dayjs

why dayjs('2024-12-31').locale('zh-cn').week() return 1 not 53

Open
#2,787 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**
A clear and concise description of what the bug is.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Information**
- "dayjs": "^1.11.13",
- OS: mac
- Browser [e.g. chrome 62]
- Time zone: zh-cn

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported expression with Day.js 1.11.13 and the zh-cn locale, then inspect the locale and week-number behavior involved. Done means the issue's expected week number is established and the implementation or documentation consistently reflects the applicable locale rules.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
localization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.