Jboss with time zone UTC

We have configured the UTC server time zone (Windows) (coordinated universal time), but when we start JBoss, I can see -5 hours from the system time in the console, as well as in the jboss log. For example, the system is the journal jsoss 0900 HRS and displays the console as 0400 HRS.

Please give some idea of ​​where we should set up jboss to get UTC time.

Rgds Balaji

+4
source share
1 answer

You can always use the time zone using the Java system property at startup, this does not apply only to JBoss:

java -Duser.timezone=UTC [...] 

or programmatically:

 System.setProperty("user.timezone", "UTC"); 

I am not a JBoss expert, but I think JBoss provides a way to explicitly set the time zone, for example. using the administration console or script configuration.

+8
source

All Articles