A java.util.Date will always have a time component because it is 
represented as the number of seconds since 1970.

The UTCDateBox normalizes that time component to midnight in GMT so that it 
will work in all timezones.

The DateBox does not normalize the time component so the Date in the 
DateBox will depend on the timezone. As I understood, this is his problem 
and this is the reason we created the UTCDateBox.

On Wednesday, May 29, 2013 10:34:10 AM UTC-4, Satyarao Kambapu wrote:
>
> Hello Andy, 
>   As per my experience the difference between DateBox and UTCDateBox is 
> Time Component. The UTCDateBox returns the date with specific time, where 
> as DateBox is not.
>  I think, the problem of  Kedar Vyawahare is not this one.
>
>
>
> On Wed, May 29, 2013 at 7:52 PM, Andy <pul...@gmail.com <javascript:>>wrote:
>
>> There are many threads about these issues. We solved this problem by 
>> wrapping the DateBox with a class called UTCDateBox that you can get here: 
>> http://code.google.com/p/gwt-traction/
>>
>> I wrote about it here: 
>> http://traction.tractionsoftware.com/traction/permalink/Blog1986
>>
>> Cheers,
>> Andy
>>
>> On Wednesday, May 29, 2013 9:05:03 AM UTC-4, kedar vyawahare 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.
>>  
>>  
>>
>
>
>
> -- 
> Satya
>  

-- 
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