When serializing / deserializing an object with the Date and Time classes of the new java.time API, the results are diferent from expected.
For example, here's a java.util.Date serialized with gson (using version 2.8.0):
"created": "2017-04-07T18:07:00",
and here's a java.time.LocalDate:
"expiration": {
"year": 2017,
"month": 4,
"day": 7
}
the expected result for javatime api was a ISO-8601.
When serializing / deserializing an object with the Date and Time classes of the new java.time API, the results are diferent from expected.
For example, here's a java.util.Date serialized with gson (using version 2.8.0):
"created": "2017-04-07T18:07:00",
and here's a java.time.LocalDate:
"expiration": {
"year": 2017,
"month": 4,
"day": 7
}
the expected result for javatime api was a ISO-8601.