Bug #5768
Updated by François ARMAND about 4 years ago
On some JRE's (seen with at least the standard Oracle one, installed using the Linux x86_64 RPM on SLES11 SP1), Java uses a default timezone which is America/Los Angeles if no TZ variable is defined.
It completely f*cks up the "Last seen" date shown on the node details pane (they are shown relative the the JRE timezone)
From webapp logs:
<pre>
[2014-11-12 17:13:48] INFO application - registered property: user.country="US"
[2014-11-12 17:13:48] INFO application - registered property: user.language="en"
[2014-11-12 17:13:48] INFO application - registered property: user.timezone="America/Los Angeles"
</pre>
I suspect that system OpenJDK packages on other system set the default TZ without anything to do.
We should make sure that the timezone Java uses is the same as the system one, and change it accordingly.
I am not yet sure if it should be done on the packaging side (init scripts) or directly Rudder webapp side...
FAR, any advice ?
h3. WORKAROUND
Edit /etc/default/rudder-jetty and add:
JAVA_OPTIONS="-Duser.timezone=Europe/Paris"