Hello, I noticed strange behavior of GWT serialization when handling Date/ Time/Timestamp values. When client and servers are in different time zones like server is in GMT and client is running in PST time zone, RPC does timezone conversion for Date/Time and Timestamp, I am not sure if this is acceptable behavior and if it is then is there a way I could disable this conversion. Here is the example public class DateTest implements EntryPoint {
public void onModuleLoad() { Button b = new Button(); b.addClickListener(new ClickListener() { public void onClick(Widget sender) { DateServiceAsync dateService = DateService.Util.getInstance(); dateService.getTimestamp(new AsyncCallback<Timestamp>(){ public void onFailure(Throwable caught) { // TODO Auto-generated method stub } public void onSuccess(Timestamp result) { TextBox tBox = new TextBox(); tBox.setText(result.toString()); RootPanel.get().add(tBox); } }); } }); RootPanel.get().add(b); } Service Implementation public class DateServiceImpl extends RemoteServiceServlet implements DateService { public Timestamp getTimestamp() { Timestamp t = new Timestamp(System.currentTimeMillis()); System.out.println("timestamp at server" + t); return t; } If server is running on GMT Time and client browser is in different timezone GWT does conversion (even for Date and Time types). Please suggest. Thansk for all the help and support. --~--~---------~--~----~------------~-------~--~----~ 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-Toolkit@googlegroups.com 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=en -~----------~----~----~----~------~----~------~--~---