gkopff / gson-jodatime-serialisers

A set of Gson serialiser/deserialisers for dealing with Joda Time entities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DateTime deserializers truncate values for minute/second/millisecond.

Tukajo opened this issue · comments

I believe the reason this happens is because the default "Type" for a DateTime object only goes down to the hour.

I posted a bit on SO about it here:
http://stackoverflow.com/questions/31710000/joda-datetime-deserializer-is-truncating-datetimes-minute-second-millisecond

also a relevant post that may be able to help us fix this is here:
http://stackoverflow.com/questions/18786243/use-gson-with-date4j-datetime

commented

Ok cool. Thanks. Are you likely to supply a pull request for this fix?

According to a reply on the first SO post. It may not even need a fix, just some annotation about JSON Formatting....

commented

I'll take a closer look then :)

This issue can be closed as it was fixed in 1.3.0 by 670e7c4#diff-18b4e8d45bdc0d29034024b99aba1124