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

处理localtime的时候format不生效 #495

Closed
jmzcode opened this issue Jun 21, 2022 · 3 comments
Closed

处理localtime的时候format不生效 #495

jmzcode opened this issue Jun 21, 2022 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@jmzcode
Copy link

jmzcode commented Jun 21, 2022

@wenshao
Copy link
Member

wenshao commented Jun 21, 2022

能否提供重现问题的testcase?

@jmzcode
Copy link
Author

jmzcode commented Jun 21, 2022

`
@DaTa
public class Test {

@JSONField(format = "HH:mm")
private LocalTime time;

public static void main(String[] args) {
    String str = "{\"time\": \"09:00\"}";
    Test test = JSONObject.parseObject(str,Test.class);
    System.out.println(JSONObject.toJSONString(test));
}

}
`

@wenshao wenshao added the bug Something isn't working label Jun 21, 2022
@wenshao wenshao added this to the 2.0.8 milestone Jun 21, 2022
@wenshao
Copy link
Member

wenshao commented Jun 25, 2022

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

@wenshao wenshao closed this as completed Jun 25, 2022
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