luoxianli / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Support Java 8 time: Instant, LocalDate, LocalTime, ZonedDateTime ... #635

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
GSon should support the Java 8 time.

It now serializes the time classes with its fields. This basically only works 
if you use GSON on both sides of the equation.

It would be better, IMHO, if it used ISO strings - as that is the "lingua 
franca" for all date stuff, and most libraries support this.

There is a github project for this: 
https://github.com/gkopff/gson-javatime-serialisers

Original issue reported on code.google.com by stolsvik on 1 Apr 2015 at 8:14