[QUESTION]在fastjson1升级到fastjson2过程中出现了时间类型不一致如何去适配
Open
question
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
在fastjson1中,date时间类型的值在toJSONstring序列化后为时间戳格式,localdatetime序列化为带T的年月日时分秒,但是在升级到fastjson2.0.54的时候,date和localdatetime变成了一致,都是不带T的年月日时分秒,如何让其与fastjson1保持一致呢
Contributor guide
Research direction
Start by comparing the Date and LocalDateTime serialization behavior between fastjson1 and fastjson2.0.54, then review the documented serialization configuration for these types. Done means Date is serialized as a timestamp while LocalDateTime retains the fastjson1 format with a T separator.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100