-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Make java.sql.Date
serializer default to same output as java.util.Date
#2405
Comments
Strongly support this to treat it as |
One challenge is that handling itself will still be distinct (at least according to current plans) from JDK8 date/time. But the idea of making it work like At first tho it might be sort of as simple as making serializer extend same base class as that for |
Please also note that although |
@michael-o I was aware of different default representation (via But just to make sure: is your suggestion to serialize it (when using String representation, not timestamp), as same ISO-8601 as what would be used for JSR-310 (java 8) date/time |
For
Here is the exception, anything ìn |
java.sql.Date
serializer use standard time (UTC), not local timezone in 3.xjava.sql.Date
serializer default to same output as java.util.Date
Changed the definition a bit: change handling of Also starting to think of whether to actually drop support of Will create a separate issue for that. |
I do support the separate module! |
(note: follow-up to #2403 )
Currently (in 2.x)
java.sql.Date
is serialized as String usingvalue.toString()
, which uses local timezone. This is different from other date/time types, but due to backwards compatibility issues, change can only be done in 3.0.The text was updated successfully, but these errors were encountered: