Tuesday, April 23, 2013

Re: Problem with DateBox

What time zone are you in? It sounds to me like you're running into timezone issues.

The DateBox returns a Date representing a specific instant in time, not a "day" even though most people are using it to select a day. Worse, depending on how you set the date when you reload the form, you can easily get off-by-one errors as you describe. We had a similar issue when adding due dates to tasks and supporting all day events in our software.

I would recommend you check out our UTCDateBox at http://code.google.com/p/gwt-traction/. I would have made the same recommendation to Jens in that original discussion.

-Andy

http://code.google.com/p/gwt-traction/
http://tractionsoftware.com

On Tuesday, April 23, 2013 1:33:23 AM UTC-4, Dominic Warzok wrote:
Thanks I will read it maybe I find a solution there ;) 

On Friday, April 19, 2013 12:19:08 PM UTC+2, Jens wrote:

Maybe there is a problem with winter and summer time?

That could be, especially for older dates. We also had problems with it, take a look at: https://groups.google.com/d/topic/google-web-toolkit/e7IqbcJIzTY/discussion

-- J. 

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