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
时区反序列化不正常
请填写以下信息:
如何操作可以重现该问题:
@Data public static class OrderDTO { LocalDate beginTime; LocalDate endTime; } public static void main(String[] args) { JSON.configReaderZoneId(ZoneId.of("Asia/Shanghai")); JSON.configWriterZoneId(ZoneId.of("Asia/Shanghai")); String str = "{\"beginTime\":\"2023-10-30T16:00:00.000Z\",\"endTime\":\"\"}"; OrderQTO orderQTO = JSON.parseObject(str, OrderQTO.class); System.out.println(JSON.toJSONString(orderQTO)); }
目前输出{"beginTime":"2023-10-30"}
{"beginTime":"2023-10-31"}
The text was updated successfully, but these errors were encountered:
跟了代码,看到判定为UTC时区了,能再转回当前时区吗?
Sorry, something went wrong.
fix parseLocalDate, for issue #1620 #1993
08dc9d7
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson/2.0.42-SNAPSHOT/ 问题已修复,请帮忙用2.0.42-SNAPSHOT版本验证,正式版本预计今晚发布。
No branches or pull requests
问题描述
时区反序列化不正常
环境信息
请填写以下信息:
重现步骤
如何操作可以重现该问题:
目前输出{"beginTime":"2023-10-30"}
期待的正确结果
{"beginTime":"2023-10-31"}
The text was updated successfully, but these errors were encountered: