Skip to content

StdDateFormat: add option to serialize timezone offset with a colon #1744

Closed
@brenuart

Description

@brenuart

Jackson's StdDateFormat serializes datetimes without colon in the timezone offset, eg. 1970-01-01T01:00:00.123+0100.

Java8 and Joda have decided to include a colon in the offset, eg 1970-01-01T01:00:00.123+01:00.

Although Joda accepts to deserialize a datetime with or without the colon, Java8 considers the colon as mandatory and fails to deserialize datetimes produced Jackson's StdDateFormat.

In addition, some platforms like iOS also require a colon in the offset and are therefore also unable to read dates produces by Jackson's StdDateFormat.

Consequence: It would be nice if Jackson's StdDateFormat could be easily configured, extended or customized to include a colon in the timezone offset.

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