Hi, I do everything server side with the help of a custom TimeZoneAwareDatePicker wrapping your tapx datepicker. It takes a source (I store everything in UTC) and display timezone (the users timezone) to do the conversion. This suits me because I will almost always know my users timezone as they need to be logged in.
In all my applications where I need to be timezone aware, I make sure to have my users specify it upfront and store it all server side. To help my users I assume the most logical tz through some util classes I build around http://icu-project.org/apiref/icu4j/. These util classes have methods like getBestMatchingTimeZone(Locale locale). Personally I wouldn't want to add a time zone drop down to a date picker as it would be too much in my opinion. Cheers, Joost On Sat, Aug 7, 2010 at 6:10 PM, Howard Lewis Ship <hls...@gmail.com> wrote: > This is something that's been nagging me. Although there's a bunch of good > options for selecting a date (or date/time) as JavaScript components bult > into Tapestry, or available elsewhere ... none of them address the issue of > the client and the server operating in different time zones. > > At the very least, these components probably should include a time zone drop > down list (or other means of selection). > > I haven't been able to find a sure-fire way of determing the user's time > zone from the HttpRequest. > > I'm curious what kinds of solutions the community have used to address this > issue. It would be nice to come up with a true solution for Tapestry 5.3. > > One option is a bit of JavaScript that reports the client's time zone (or > just time) to the server so that the server can identify their time zone > automatically. > > -- > Howard M. Lewis Ship > > Creator of Apache Tapestry > > The source for Tapestry training, mentoring and support. Contact me to learn > how I can get you up and productive in Tapestry fast! > > (971) 678-5210 > http://howardlewisship.com > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org