Skip to content
New issue

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

[BUG] LocalDateTime JSONField.format 失效 #604

Closed
BadGuy-Darren opened this issue Aug 2, 2022 · 1 comment
Closed

[BUG] LocalDateTime JSONField.format 失效 #604

BadGuy-Darren opened this issue Aug 2, 2022 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@BadGuy-Darren
Copy link

问题描述

对象 LocalDateTime 属性配置格式化 @JSONField(format = "yyyy-MM-dd"),结果 @JSONField 配置无效,返回时间戳(像这样:1659402909455)

环境信息

请填写以下信息:

  • OS信息: windows11-intellij idea
  • JDK信息: Openjdk 1.8.0_202
  • 版本信息:Fastjson2 2+

image

image

请求响应:
image

@BadGuy-Darren BadGuy-Darren added the bug Something isn't working label Aug 2, 2022
@BadGuy-Darren BadGuy-Darren changed the title [BUG] [BUG] LocalDateTime JSONField.format 失效 Aug 2, 2022
@wenshao wenshao added this to the 2.0.11 milestone Aug 2, 2022
@wenshao wenshao closed this as completed in 64c5428 Aug 2, 2022
@wenshao
Copy link
Member

wenshao commented Aug 7, 2022

https://github.com/alibaba/fastjson2/releases/tag/2.0.11
问题已修复,请用新版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants