Skip to content

StdDateFormat: accept and truncate millis larger than 3 digits #1745

@brenuart

Description

@brenuart

Java8 is likely to produce datetimes with nanosecond precision: the millis part may therefore be larger than 3 digits.

Unfortunately, Jackson's StdDateFormat fails to parse datetimes when the so-called millis have more than 3 digits - hence breaking interoperability between systems build upon these two technologies.

Although the standard java.util.Date supports only millis precision, JodaTime accepts datetimes serialized with nano-precision and truncate it to the first three digits. I think it would be nice if the StdDateFormat does the same...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions