Tuesday, July 3, 2012

Re: Date Serialization



On Wednesday, July 4, 2012 3:17:42 AM UTC+2, Joseph Lust wrote:
This question comes up so often that it ought to be a priority for GWT 2.6. Perhaps a module setting to for TZ safe date serialization?

If the timezone matters to you, you can simply send it along with the date (timestamp). The fact is a java.util.Date is not enough, as the timezone is the one of the JVM; I bet you'd have the same behavior with Java serialization and/or RMI.

The issue is Java's standard lib, not GWT. JSR 310 aims at fixing it (highly inspired from JodaTime), but is not ready yet (http://threeten.sf.net)
See http://code.google.com/p/google-web-toolkit/issues/detail?id=603

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Uk0BOMsGV9UJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment