Our apps have something like this in the module: @Startup public static void setDefaultTimeZones(@Inject @Symbol(PlatformSymbols.DEFAULT_TIMEZONE_TO_UTC) boolean setTimezoneToUtc) { if (setTimezoneToUtc) { System.setProperty("user.timezone", UTC); org.joda.datetime.DateTimeZone.setDefault(DateTimeZone.UTC); java.util.TimeZone.setDefault(TimeZone.getTimeZone(UTC)); } }
On 27 March 2012 04:30, Paul Stanton <p...@mapshed.com.au> wrote: > you need to change the timezone setting for the jvm via -Duser.timezone, but > even then you need to patch an outstanding bug with the DateField: > > https://issues.apache.org/jira/browse/TAP5-841 > > > On 25/03/2012 7:48 AM, bigcache1 wrote: >> >> Hello, everybody. >> I want to set the time in the application to the UTC+4, how should I do >> that? >> I would prefer not to touch the server settings. >> >> And can I change the datepicker using the SymbolConstraints.Datepicker >> property? >> >> P.S. I have searched the first question for 20 minutes, but google gives >> me >> something like 'comile time', or time of posts on the forum. >> >> -- >> View this message in context: >> http://tapestry.1045711.n5.nabble.com/T5-3-datetime-settings-question-tp5592275p5592275.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org