-
1. Re: user.timezone setting in Wildfly 8.2.Final
jaysensharma Dec 15, 2015 1:51 AM (in response to arnab_ghosh)Hello Arnab,
I have tested the same on "wildfly-8.2.1.Final" and i can see that it is working fine and the user.timezone is getting updated properly in the server log as well. This is what i tried :
Took a fresh "wildfly-8.2.1.Final" and started it as following:
$ ./standalone.sh -Duser.timezone=UTC
And i can see that server.log has the following entry:
sun.java.command = /PATH/TO/wildfly-8.2.1.Final/jboss-modules.jar -mp /PATH/TO/wildfly-8.2.1.Final/modules org.jboss.as.standalone -Djboss.home.dir=/PATH/TO/wildfly-8.2.1.Final -Djboss.server.base.dir=/PATH/TO/wildfly-8.2.1.Final/standalone -Duser.timezone=UTC . . user.language = en user.name = jsensharma user.timezone = UTC
Regards
Jay SenSharma
-
2. Re: user.timezone setting in Wildfly 8.2.Final
arnab_ghosh Dec 15, 2015 3:51 PM (in response to jaysensharma)I am using Wildfly 8.2.0.Final. But probably the version may not be the issue. Let me test few more things and get back
-
3. Re: user.timezone setting in Wildfly 8.2.Final
arnab_ghosh Dec 15, 2015 6:30 PM (in response to jaysensharma)Jay,
The same happens for me as well. I was able to see user.timezone set correct value via the cli, but there is no effect. The log shows time in default timezone of the VM and not the timezone I have set.
/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)
But the moment I set it via the standalone.conf it takes effect. The only difference I see is in output of jinfo, the order in which the user.timezone and property appears. Not sure what is going on.
Regards
Arnab
-
4. Re: user.timezone setting in Wildfly 8.2.Final
jaysensharma Dec 15, 2015 11:13 PM (in response to arnab_ghosh)Hello Arnab,
I am testing on "/wildfly-8.2.1.Final" and i can see that when i start the WildFly as following the value of user.timezone property is getting reflected properly.
Example:
$ ./standalone.sh -Duser.timezone=UTC
Running the CLI:
[standalone@localhost:9990 /] /core-service=platform-mbean/type=runtime:read-attribute(name=system-properties) { "outcome" => "success", "result" => { "[Standalone]" => "", "awt.toolkit" => "sun.lwawt.macosx.LWCToolkit", "file.encoding" => "UTF-8", . . . "user.dir" => "/PATH/TO/wildfly-8.2.1.Final/bin", "user.home" => "/Users/jsensharma", "user.language" => "en", "user.name" => "jsensharma", "user.timezone" => "UTC" } }
Notice: "user.timezone" => "UTC" in the above Output.
So please check if you are connecting to the correct WildFly instance or not?
Regards
Jay SenSharma