Skip to content

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

@cowtowncoder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.0Issue planned for initial 3.0 release3.0-release-notesIssues relevant for 3.0 release notes.date-time-configWork related to possible larger DateTimeConfig feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions