I can assure you that your solution will not work with all combinations of browser/client settings/server settings...
What you should keep in mind is: never use a Date objet to represent a calendar date with no time part! Date is actually a timestamp and wasn't meant to represent a calendar date; that's why we run into all these problems. Unfortunately Java doesn't provide a "calendar date" class. Theoretically a Calendar with no time components would work, but as you all well know Calendar isn't part of the GWT library. On Mar 2, 9:07 pm, Sorinel C <[email protected]> wrote: > Here's the solution for your problem, which I had it last week. In my > case the hour was jumping 1 day ahead :) > > http://ui-programming.blogspot.com/2010/02/gwt-date-and-timestamp-rpc... > > The main idea is to use the Date(year, month, day, hour, min, sec) > constructor for your client side, but try to avoid this, if you can. > > Cheers! -- 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=en.
