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
@JSONField(format = "yyyy-MM-dd HH:mm:ss") 同时支持:yyyy-MM-dd HH:mm 需要怎么操作
The text was updated successfully, but these errors were encountered:
请帮忙构造重现问题的testcase
Sorry, something went wrong.
@Test public void test() { String str = JSONObject.of("date", "2024-06-14 12:13:00").toJSONString(); String str1 = JSONObject.of("date", "2024-06-14 12:13").toJSONString(); Date date = JSON.parseObject(str, Bean.class).date; Date date1 = JSON.parseObject(str1, Bean.class).date; assertEquals(date.getTime(), date1.getTime()); } public static class Bean { @JSONField(format = "yyyy-MM-dd HH:mm:ss") public Date date; }
问题未重现
add test case for issue #2436
70df120
No branches or pull requests
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
同时支持:yyyy-MM-dd HH:mm
需要怎么操作
The text was updated successfully, but these errors were encountered: