Closed WonderCsabo closed 9 years ago
Thanks for the suggestion. Do you expect these values to be serialized from-to java.util.Date
?
Yes.
Ok great I will work on this during the weekend
I've been working on this. I have the part that can parse a date with our without the time. The second part, (serializing only the date portion) will be done during the week. The next version of GsonFire will include this feature and will be released at the most on Oct 12th.
Great, thanks!
Done and deployed in version 1.4.0. See the DateSerializationPolicy
Great, thanks!
The standard supports a
full-date
format, which only contains date information, and does not have any time and timezone information. Currently the date serialiser rejects dates coming in this format. It would be also nice to add an option to the deserializer to only usefull-date
and not emit any time information, so consumers can accept the generated string even if they strictly only use thefull-date
part.This
full-date
format is used by lots of frameworks like Swagger as default date type. Currently GSON Fire cannot work with them, because it expects and generatesdate-time
.BTW,
full-time
support can be also added, but that is less used.