-
Notifications
You must be signed in to change notification settings - Fork 19
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
Instant converter working; LocalDate(Time) not #20
Comments
I will take a look and see what I can find. |
@patricklucas Take a look at 8e5b022 - it adds your test class and this test case:
The test passes, so I am unable to reproduce the issue you're having. |
Perhaps in your real code you're accidentally using a |
Thanks. I suspected the same, but double checked the reference and there didn't seem to be anything amiss. I'll take another look next Wednesday when I again have access to the actual code. |
The Instant converter is working great for me, but I'm having trouble with the LocalDate and LocalDateTime converters.
When I call
toJSON
, the two Instants (date
,date4
) are serialized properly to ISO timestamps, butdate2
anddate3
serialize to{"date": {"year", "month", "day"}, "time": {...}}
and{"year", "month", "day"}
respectively.Given the relatively simplicity of the implementation of this package, I'm not sure where the error might lie, but I just wanted to inquire here in case you have any ideas.
The text was updated successfully, but these errors were encountered: