Re: Giving wrong value for Date of month
Don't forget the timezone setting of your client PC's if you are using
java.util.Date objects.
Specifically if you send a date object from a client, to the server,
the date may not be what expected, unless you convert your dates to
UTC timezone first, and then convert to your server's timezone.
I had problems with some user's dates being stored in a server
database, being one day off because some client PC's had messed up
timezone or daylight savings settings.
I changed my code to pass String representations of dates to the
server instead of using java.util.Date with RPC.
Mike.
On Apr 23, 8:14 am, andy <andy.anand1...@gmail.com> wrote:
> int startMonth = startDate.getMonth();
> int endMonth = endDate.getMonth();
> giving wrong value ....
> what to do now?
--
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 google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home