Hi David,

I can't tell if you're asking me or the OP, but I'll tell you what we're 
doing it and I believe it is what Kedar should be doing.

The UTCDateBox implements HasValue<Long> and we pass a Long over RPC and 
store a Long on the server. This number always represents midnight in GMT 
on a selected date.


On Wednesday, May 29, 2013 10:59:47 AM UTC-4, stuckagain wrote:
>
> Hi,
>
> How are you sending the date over RPC ? as a Date ? And how are you 
> storing it ? as a string ?
> The Date object does not allow you to change the timezone, it is always 
> using the local one since it does not store it with the Date object.
>
> AFAIK the Date object behaves correctly in GWT, it can sometimes be a bit 
> strange if you don't include the timezone or when sometimes you convert it 
> to a string in the browser vs on the server side and those machines are in 
> a different timezone.
>
> David
>
> On Wed, May 29, 2013 at 3:05 PM, Kedar Vyawahare 
> <kedar.vya...@gmail.com<javascript:>
> > wrote:
>
>> 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.
>>
>> So the date get changed as there is timezone difference. 
>>
>> Please suggest some way out.
>>
>> -- 
>>
>> Thanks & regards ,
>>
>> Kedar  
>>
>>  
>>  
>> -- 
>> 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+unsubscr...@googlegroups.com <javascript:>.
>> To post to this group, send email to 
>> google-we...@googlegroups.com<javascript:>
>> .
>> 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.
>>  
>>  
>>
>
>

-- 
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+unsubscr...@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.


Reply via email to