Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cowtowncoder opened this issue Apr 5, 2025 · 0 comments
Open
Labels
3.0-release-notes 3.0 Issue planned for initial 3.0 release date-time-config Work related to possible larger DateTimeConfig feature

Comments

@cowtowncoder
Copy link
Member

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.

@cowtowncoder cowtowncoder added 3.0 Issue planned for initial 3.0 release date-time-config Work related to possible larger DateTimeConfig feature labels Apr 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.0-release-notes 3.0 Issue planned for initial 3.0 release date-time-config Work related to possible larger DateTimeConfig feature
Projects
None yet
Development

No branches or pull requests

2 participants