(I apologize if this appears twice.  I thought it was submitted but it
appears to have been lost.)

Thanks so much Lothar for your response.

--Using java.util.Date this comes without surprise, because
--Date itself doesn't contain any timezone-information.

This is true.

--Saved or serialized? IMHO:
--Saved: UTC-times
--Serialized: W3C-formatted string representation of the date

It looks like you are suggesting that rather than send the Date to the
server, Dates should be converted to Strings to be serialized?  For
example, suppose I have a simple object "Person" with two attributes,
one of which is a Date.

public class Person {
        private String fullname;
        private Date birthdate;
}

I need to save the object on the server so I send it over RPC

public interface MyRPC extends RemoteService {
        public void savePerson( Person person );
}
public interface MyRPCAsyc {
        public void savePerson( Person person, AsyncCallback<Void> callback);
}

How should I send the Date information as String, at what point should
it be converted?  I'd rather not change my model attributes from Date
type to String.

Thanks again.

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

Reply via email to