[QUESTION] 日期格式中的数字为东阿拉伯数字(۲۰۲۵-۰۳-۱۰ ۰۱:۴۴:۵۵)时,无法解析
Open
question
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
通过com.alibaba.fastjson2.JSONReader.readDate方法解析日期时,如果日期格式中的数字为东阿拉伯数字(۲۰۲۵-۰۳-۱۰ ۰۱:۴۴:۵۵),则无法解析,此问题在fastjson中没有问题,请问有什么解决方案么。
fastjson2 version:2.0.54
JDK version:openJdk 1.8.0_332
Contributor guide
Research direction
Start by reproducing the failure through com.alibaba.fastjson2.JSONReader.readDate with the reported date string, using fastjson2 2.0.54 on OpenJDK 1.8.0_332. Compare the behavior with fastjson and determine what would make the East Arabic numerals parse successfully; done means the reported date format is accepted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100