Skip to content

Change default for DateTimeFeature.ONE_BASED_MONTHS to true in 3.0 #5065

Closed

Description

@cowtowncoder

Feature known as JavaTimeFeature.ONE_BASED_MONTHS in 2.x defaults to false for backwards-compatibility reasons. With #5032 this module was merged in jackson-databind for Jackson 3.0.0 (rc3) and feature became DateTimeFeature.ONE_BASED_MONTHS.

It makes more sense to have this feature enabled for 3.0, so let's change that. Change will probably fail a few unit test so most work is likely just changing tests to work appropriately again.

We also need to update MapperBuilder.configureForJackson2() to set that back to false if requested.

Activity

  1. added
    3.0
    date-time-config
    on Apr 5, 2025
  2. changed the title [-]Change defaulat for `DateTimeFeature.ONE_BASED_MONTHS` to `true` in 3.0[/-] [+]Change default for `DateTimeFeature.ONE_BASED_MONTHS` to `true` in 3.0[/+] on Apr 5, 2025
  3. added
    3.0-release-notes
    on Apr 5, 2025
  4. added 2 commits that reference this issue on Apr 9, 2025
    a0b8634
    53a7477
  5. added this to the 3.0.0-rc3 milestone on Apr 9, 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