-
Notifications
You must be signed in to change notification settings - Fork 122
Why LocalDateDeserializer used UTC ? #119
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
Comments
What exactly is your problem here? Jackson defaults to UTC for most things, and "local" dates/times mean that there is NO TIMEZONE associated at all: https://docs.oracle.com/javase/8/docs/api/java/time/LocalDateTime.html so one SHOULD NOT USE timezone with LocalDateTime and others, nor expect specific one, nor make any other assumptions. |
Correct, for zoning use ZonedDateTime and pull it back to LocalDate with a .asDate() to correctly shift between zones. LocalDateTime and LocalDate are always in UTC, and this is correct. Please do not change this at all! @funcfoo Perhaps look at your requirements and verify if you are using the correct objects. |
@cowtowncoder @GedMarc so. I think is user defined. |
English is not my first language. I'm not sure whether I make myself clear. Long time passed. so I close this issue. |
I think that I understood enough to try to explain why I think handling is reasonable at this point, and that user needs to handle |
Why LocalDateDeserializer used UTC?
Closed issue LocalDateDeserializer ignores local time zone
JDK use system default zone.
Maybe LocalDateDeserializer used UTC is worst?
The text was updated successfully, but these errors were encountered: