/ Work

Sun Java on RedHat and time zones

For future reference, when updating the time zone on a RedHat machine running Sun's Java it is not sufficient to update /etc/localtime, you also have to update /etc/sysconfig/clock.

I was under the impression that configuration files within /etc/sysconfig were only supposed to be used for RedHat's own purposes, but apparently Sun's Java for Linux looks first at /etc/sysconfig/clock for the time zone, and only if that's missing it goes to /etc/localtime.

Perhaps this will save you hours of troubleshooting and googling why the fsck your Java apps aren't using the time zone you have set in /etc/localtime. Argh.

Bryan Fullerton

Bryan Fullerton

Just a middle-aged dude doing his best to survive. Geeky Internet things from remote professionally.

Read More
Sun Java on RedHat and time zones
Share this