You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.time.format.DateTimeParseException: illegal input 01-01-2022 12:00:00
at com.alibaba.fastjson2.util.DateUtils.parseMillis19(DateUtils.java:9763)
at com.alibaba.fastjson2.JSONReaderUTF8.readMillis19(JSONReaderUTF8.java:6713)
at com.alibaba.fastjson2.JSONReader.readMillisFromString(JSONReader.java:1557)
at com.alibaba.fastjson2.JSONReader.readDate(JSONReader.java:1381)
at com.alibaba.fastjson2.reader.ORG_1_1_Model.readObject(Unknown Source)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:542)
The text was updated successfully, but these errors were encountered:
问题描述
对于
日-月-年
格式的字符串,fastjson 1.x 可以解析,fastjson兼容无法解析。请问是否考虑支持呢环境信息
重现步骤
相关日志输出
java.time.format.DateTimeParseException: illegal input 01-01-2022 12:00:00
at com.alibaba.fastjson2.util.DateUtils.parseMillis19(DateUtils.java:9763)
at com.alibaba.fastjson2.JSONReaderUTF8.readMillis19(JSONReaderUTF8.java:6713)
at com.alibaba.fastjson2.JSONReader.readMillisFromString(JSONReader.java:1557)
at com.alibaba.fastjson2.JSONReader.readDate(JSONReader.java:1381)
at com.alibaba.fastjson2.reader.ORG_1_1_Model.readObject(Unknown Source)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:542)
The text was updated successfully, but these errors were encountered: