中文日期解析不了?dayjs('2024年10月17日')
Open
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
dayjs('2024年10月17日').format('YYYY-MM-DD')
报错:'Invalid Date'
以下的是正常的
dayjs('2024/10/17').format('YYYY-MM-DD')
**Expected behavior**
dayjs('2024年10月17日').format('YYYY-MM-DD')
能正常解析出来:2024-10-17
**Information**
- Day.js Version V1.11.10
- OS: mac os
- Browser Chrome 131.0.6778.205
Contributor guide
Research direction
Start by reproducing the reported dayjs('2024年10月17日') case and compare it with the working slash-separated input. Trace the date-parsing entry point for these inputs, then verify that the Chinese-formatted date produces 2024-10-17 without regressing the existing case.
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
- Mostly clear
- Newbie friendliness
- 45/100