A java library that adds some very useful features to Gson, like Date serializing to unix timestamp or RFC3339, method (getters) serialization, pre/post processors and many others. Check out the documentation to learn how to use it!
The parser allow an input string like "2013-02-07T02:29:08.2Z" but it formats it like "2013-02-07T02:29:08.002Z".
What
Change the parser to have the wanted millis values when it's missing the right 0.
I'm adding more tests, for the different position of a 0 and the omission of the ones in the right.
How to test
To test the fix, run tests "test2millisFraction" and "test22millisFraction"
Why
The parser allow an input string like "2013-02-07T02:29:08.2Z" but it formats it like "2013-02-07T02:29:08.002Z".
What
Change the parser to have the wanted millis values when it's missing the right 0. I'm adding more tests, for the different position of a 0 and the omission of the ones in the right.
How to test
To test the fix, run tests "test2millisFraction" and "test22millisFraction"