I have a need to transfer Date objects (without time and thus timezone
agnostic) through RPC.
I retrieve them from database column of type DATE as java.sql.Date
objects.
Currently (as of GWT 1.7.1)
com.google.gwt.user.client.rpc.core.java.sql.Date_CustomFieldSerializer
passes this objects as long value retrieved from getTime method. This
means that on clients with different timezones it will be displayed
differently.

What I think it should do is serialize using YYYY/MM/DD format like
here [1].

This way it would be handled consistently across clients and servers
in any timezone.

Currently i have a custom type which wraps sql.Date and provide
serialization using year, month and day representation. However this
is not convenient as i have to provide solution of replacing all
sql.Date values which come from JDBC/hibernate with my custom type.

I think this is logical to have
com.google.gwt.user.client.rpc.core.java.sql.Date_CustomFieldSerializer
behave like described in [1].
What would you recommend to do on this situation?

[1] 
http://markmail.org/message/elkns4aqwxwodtra#query:gwt%20user.timezone+page:1+mid:k6csob67vuhuovdn+state:results

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=.


Reply via email to