-
1. Re: setting the default Timezone
nxs Sep 8, 2004 4:59 AM (in response to nxs)Mork calling Orson...come in Orson.
-
2. Re: setting the default Timezone
maharg Jun 16, 2005 7:16 AM (in response to nxs)would appreciate a reply to this one
-
3. Re: setting the default Timezone
schrouf Jun 16, 2005 2:23 PM (in response to nxs)Your timezone settings are determined on the operation system level, not within jboss.
Regards
Ulf -
4. Re: setting the default Timezone
nxs Jun 22, 2005 7:02 AM (in response to nxs)I had given up hope!!
the software may be installed on customer machines, running other applications, so it's no good relying on the OS.
I repeat - the TimeZone MUST always be the same (GMT)
I have created a ServletContextListener and set the timezone in there.
TimeZone.setDefault( TimeZone.getTimeZone("GMT"));
in web.xml :-
<listener-class>MyServletContextListener</listener-class>
I guess that the scope of that change is just my application due to JBoss using a different class loader for each application.
Everything seems OK at the moment, but it doesn't feel quite right to me. -
5. Re: setting the default Timezone
nxs Apr 11, 2006 6:08 AM (in response to nxs)This was OK until we upgraded to java 1.5.
It seems that Thread locals may be used to store the default in some circumstances.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6352812
Surely you should be able to have to have 10 applications running on an app server, with 10 different default timezones!