Skip to main content

How to change JVM Time Zone

1 reply [Last post]
hglakshitha
Offline
Joined: 2007-08-27

In my application, users can change the Time and the Time-Zone as required.
I m changing the system-time and system-time-zone. I used TimeZone.setDefault() method to changed the JVM's Time-Zone.
So that the JBoss server does not need to restart to get the new Time-Zone.
But Jboss does not shows the correct time in its console.
Restart of the JBoss server fix the problem.
Can anybody tell me how to tackle this issue?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mthornton
Offline
Joined: 2003-06-10

The problem is not how to change the JVM time zone (TimeZone.setDefault does that perfectly well), but how to change the TimeZone used by JBoss for its console. You should ask in a forum appropriate to JBoss.