Skip to content

Change default textual serialization of java.util.Date/Calendar to include colon in timezone offset #2643

Closed
@cowtowncoder

Description

@cowtowncoder

(for background, see #1624 and #1744)

So. While older JDK versions (up to JDK 7) always wrote timezone offset, if any, without colon, like:

+0000

ISO-8601 specification expects minute/hour part to be separated by a colon like

+00:00

While #1744 added an option to enable this behavior, it has not been default for Jackson.
Let's change it in 2.11.

A note on implementation: a new SerializationFeature setting was briefly considered, but wiring of such setting to be used proved difficult. Users can still use method in StdDateFormat

Metadata

Metadata

Assignees

No one assigned

    Labels

    date-time-configWork related to possible larger DateTimeConfig feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions