FasterXML / jackson-datatype-joda

Extension module to properly support full datatype set of Joda datetime library
Apache License 2.0
140 stars 81 forks source link

Make `Duration` follow `SerializationFeature.WRITE_DURATIONS_AS_TIMESTAMPS` (not WRITE_DATES_xxx) #103

Closed cowtowncoder closed 6 years ago

cowtowncoder commented 6 years ago

See #31 for background: looks like this was either NOT implemented here (maybe JAva 8 datetime?), or there has been regression.

Since this is behavioral change, change needs to go in 2.10. It'll be tricky, regardless, as there's no good way to guarantee backwards compatibility. Java 8 date/time module had similar change made for 2.10 as well.

/cc @ewirch

cowtowncoder commented 6 years ago

Hmmh. Odd. Looking at 2.9, it looks as if this setting WAS already used; and this would be in 2.9.7 at least. Need to investigate when I find time.

cowtowncoder commented 6 years ago

HMmh. I don't know. Need to ask more questions on #31, nothing on report makes sense.