-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Milestone
Description
ObjectMapper uses the StdDateFormat for date serialization. Jackson date parsing is lenient by default, so 2015-01-32 gets parsed as 2015-02-01. Jackson’s StdDateParser is matching default behavior of DateParser.
StdDateParser wasn’t really designed for extension to just enable strict date parsing. If it were, we could just call objectMapper.setDateFormat(new StdDateFormat().setLenient(false)). But StdDateFomrat doesn't support setting lenient to false. And i.e. the reason date like 2015-01-32 gets parsed as 2015-02-01 ad Jackson date parsing is lenient by defualt.
Can StdDateFormat can be enhanced to support to non lenient date parsing?
Metadata
Metadata
Assignees
Labels
No labels