开发者

Jboss with UTC timezone

开发者 https://www.devze.com 2023-04-09 00:46 出处:网络
We have setup our server timezone (Windows) UTC (coordinated universal time) , but when we start the JBoss I could see -5 hours from system ti开发者_StackOverflow中文版me in the console as well as in

We have setup our server timezone (Windows) UTC (coordinated universal time) , but when we start the JBoss I could see -5 hours from system ti开发者_StackOverflow中文版me in the console as well as in the jboss log. For e.g., system is 0900 HRS jboss log and console shows as 0400 HRS.

Please throw some idea where we should configure in jboss to pickup UTC time.

Rgds Balaji


You can always enforce a timezone using a Java system property during startup, this does not apply to JBoss only:

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

or programatically:

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

I'm not a JBoss expert, but I guess JBoss provides a way to explicitly set the timezone, e.g. using administration console or configuration script.

0

精彩评论

暂无评论...
验证码 换一张
取 消