Page 1 of 1

Time zones

Posted: Sat Apr 25, 2009 3:12 pm
by biggles
I have some trouble with my time zones. I have set up the time zone in Plesk to CET. The problem is that some system generated log rows still displays the default time zone. An example from /var/log/messages. Anyone have any suggestions?

Code: Select all

Apr 25 21:03:26 server7 ntpd[2603]: synchronized to 87.32.8.19, stratum 2
Apr 25 15:03:26 server7 kernel: grsec: time set by /usr/sbin/ntpd[ntpd:2603] uid/euid:38/38 gid/egid:38/38, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0

Re: Time zones

Posted: Sat Apr 25, 2009 8:09 pm
by faris
I don't know what the Plesk option does.

What I'd suggest is that you first backup the current timezone configuration. e.g.

Code: Select all

mv /etc/localtime  /etc/localtime-orig
Then create a symbolic link from your timezone to /etc/localtime. For example for Amsterdam:

Code: Select all

ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
You might also need to modify the zone= entry in /etc/sysconfig/clock. e.g. to Europe/Amsterdam

Code: Select all

ZONE="Europe/Amsterdam"
Faris.

Re: Time zones

Posted: Sun Apr 26, 2009 3:23 am
by biggles
Thanks! Works like a charm!