Skip to content

Move date/time SerializationFeatures into DateTimeFeature (3.0) #5066

Closed

Description

@cowtowncoder

With #5032 Java Time module (jackson-datatype-jsr310) was merge into jackson-databind. Its configuration settings were renamed DateTimeFeature, to be used for all date/time configuration (f.ex for Joda module).

But there are a few existing SerializationFeatures that would make more sense as more specific DateTimeFeatures. Let's make them. This includes:

  • WRITE_DATES_AS_TIMESTAMPS (false)
  • WRITE_DATE_KEYS_AS_TIMESTAMPS (false)
  • WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS (true)
  • WRITE_DATES_WITH_ZONE_ID (false)
  • WRITE_DATES_WITH_CONTEXT_TIME_ZONE (false)
  • WRITE_DURATIONS_AS_TIMESTAMPS

Defaults (shown in parentheses) can remain for now: if changes desired let's handle them under separate issue.

Activity

  1. added
    3.0
    date-time-config
    on Apr 5, 2025
  2. added
    3.0-release-notes
    on Apr 5, 2025
  3. added this to the 3.0.0-rc3 milestone on Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.03.0-release-notesdate-time-config

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions