Timezones are a pain in javascript because it just doesn't do them. If you have 
a javascript Date on the client, it will always display in the client's 
timezone. If you want to apply timezone offsets, you must do that on the 
server. You can't then simply transfer the resulting java.util.Date via RPC 
because the timezone will be converted to the browser's timezone (unless that's 
what you want). So you might need to format the date on the server, or transfer 
it as separate day-month-year values.

HTH
Paul

On 13/01/12 17:13, Deekay wrote:
Hi,

Can any one have word of wisdom on this.
My case is like ..I am saving user DOB in PST format, I need to show
the DOB in requested client timezone.

Can I converse it in serverside ,does the Http request gives the
locale based on the client location or it only it gives
default locale as per the  prefered language set.Like if it is
english ?

Or i have to explicitly define a js variable and send the offset to
server and compare there.


Appreciate any enlightenment on this.


--
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to