alibaba / alibaba/fastjson2

@JSONField时间格式不兼容了

Open
#2,435 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

2.0.16版本字段@JSONField(format = "yyyy-MM-dd HH:mm:ss"),提交的表单字段格式yyyy-MM-dd HH:mm还能提交,2.0.48必须格式要求yyyy-MM-dd HH:mm:ss这种一定要一样了,如果兼容yyyy-MM-dd HH:mm

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported @JSONField(format = "yyyy-MM-dd HH:mm:ss") behavior with versions 2.0.16 and 2.0.48, using an input value formatted as yyyy-MM-dd HH:mm. Trace the date-field deserialization path and add a regression test if the behavior is confirmed. Done means the shorter input is accepted compatibly with 2.0.16, or the supported format change is explicitly established.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.