We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fastjson v1兼容模块会将LocalDate、LocalDateTime序列化为时间戳格式
public void jsonTest() { Map<String, Object> map = new HashMap<>(); map.put("startDate", LocalDate.now()); map.put("endDate", LocalDate.now().plusMonths(1)); System.out.println(JSON.toJSONString(map)); }
{"endDate":1716393600000,"startDate":1713801600000}
The text was updated successfully, but these errors were encountered:
fix LocalDate use millis as default DateFormat, for issue alibaba#2477
5da0394
add testcase for issue #2477
660d516
https://repo1.maven.org/maven2/com/alibaba/fastjson/2.0.50/ 问题已修复,请用新版本
Sorry, something went wrong.
No branches or pull requests
问题描述
Fastjson v1兼容模块会将LocalDate、LocalDateTime序列化为时间戳格式
重现步骤
相关日志输出
{"endDate":1716393600000,"startDate":1713801600000}
The text was updated successfully, but these errors were encountered: