Thursday, March 29, 2012

Re: DatePicker UTC

http://code.google.com/p/gwt-traction/ (Look for UTCDateBox towards the bottom)
http://gwt-traction.googlecode.com/hg/demo/com.tractionsoftware.gwt.demo.utcdatebox.UTCDateBoxDemo/UTCDateBoxDemo.html (Demo of it).

I created one based off of this for GXT and this should do what you want.  Although when I went to create a GXT version, I kept it so get/setValue used Date and not Long but did the timezone offset subtraction that this did.

On Wednesday, March 28, 2012 3:07:39 PM UTC-5, Thomas Lefort wrote:
I need the datepicker to render the date in UTC and not the local
format. Is there any simple way to do so?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/joQfhQCm1uQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment