-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZonedDateTime serialization fails on milliseconds #89
Comments
I am not sure I understand why this would be considered a failure -- value is still the same regardless of trailing zeroes isn't it? ISO-8601 allows variable number of digits for fractional seconds I think. I think Java 8 default formatters will trim out trailing zeroes in some cases, for better or worse, and I think that is what is happening here. |
I think so too, W3C's format allows 1+ digit. But apparently some parsers have trouble dealing with it. Anyway, this is not an issue in Jackson. Sorry for the inconvenience. |
FYI: Error: |
This looks like the same as issue #76, so might need additional documentation around this at the least. |
Yes, this issue is essentially identical to #76. Closing as a duplicate. |
The trailing zeros are stripped:
Output:
The first serialization should be
"2018-04-16T19:37:23.010Z"
.Tested with jackson-datatype-jsr310 2.9.6.
The text was updated successfully, but these errors were encountered: