To avoid this, you might send a date to your server in a format that preserves the day-month-year and time of day, and have your server send dates back in a similar fashion. How you do this depends on how you communicate with your server.
Search the archives and you will find descriptions of this sort of thing. Some people send dates as text strings. Others using GWT RPC override the custom field serializers for java.util.Date, java.sql.Date and java.sql.Timestamp so that RPC sends the day-month-year and hour-minutes-second instead of the default, which is the number of milliseconds since 1970.
Paul
On 29/05/13 14:05, Kedar Vyawahare wrote:
--Please suggest some way out.So the date get changed as there is timezone difference.Hi all,I am using a date picker in date box and storing the date in database.But database is remotely hosted which is in different timezone.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment