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
简要描述您碰到的问题。 在输入错误的日期字符串时输出超出预期
请填写以下信息:
如何操作可以重现该问题:
JSONObject.getDate
"2000-00-00 00:00:00"
Wed Dec 01 00:00:00 CST 1999
try { String time = "2000-00-00 00:00:00"; com.alibaba.fastjson2.JSONObject jsonObject = new com.alibaba.fastjson2.JSONObject(); jsonObject.put("time", time); System.out.println(jsonObject.getDate("time")); System.out.println(System.getenv()); } catch (Exception e) { e.printStackTrace(); }
对您期望发生的结果进行清晰简洁的描述。 如果输入一个错误的时间格式,是否应该抛出异常由用户处理
请复制并粘贴任何相关的日志输出。
DateUtiles 中 toMillis19 方法认为月份大于 12 或日期大于 32 .... 也是合法的
The text was updated successfully, but these errors were encountered:
fix JSONObject.getDate, for issue #912
c3c0fa0
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.19-SNAPSHOT/ 问题已修复,请帮忙用2.0.19-SNAPSHOT验证,2.0.19版本预计在11月13日前发布。
Sorry, something went wrong.
https://github.com/alibaba/fastjson2/releases/tag/2.0.19 请用新版本
No branches or pull requests
问题描述
简要描述您碰到的问题。
在输入错误的日期字符串时输出超出预期
环境信息
请填写以下信息:
重现步骤
如何操作可以重现该问题:
JSONObject.getDate
方法"2000-00-00 00:00:00"
数据Wed Dec 01 00:00:00 CST 1999
错误,该输出不符合预期期待的正确结果
对您期望发生的结果进行清晰简洁的描述。
如果输入一个错误的时间格式,是否应该抛出异常由用户处理
相关日志输出
请复制并粘贴任何相关的日志输出。
附加信息
DateUtiles 中 toMillis19 方法认为月份大于 12 或日期大于 32 .... 也是合法的
The text was updated successfully, but these errors were encountered: