Jackson added a breaking change in 2.10 for the way Duration
is serialized.
Before that the DurationSerializer
was using SerializationFeature.WRITE_DATES_AS_TIMESTAMPS
to check whether Duration should be serialized as a timestamp or not.
Since 2.10 Jackson uses SerializationFeature.WRITE_DURATIONS_AS_TIMESTAMPS
to check whether Duration
should be serialized as a timestamp or not.
This commit aligns the default for SerializationFeature.WRITE_DURATIONS_AS_TIMESTAMPS
with the default for SerializationFeature.WRITE_DATES_AS_TIMESTAMPS
The change in Jackson was done in https://github.com/FasterXML/jackson-modules-java8/pull/75
fixes gh-19345