Time zones

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

Time zones

Unread post 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
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Time zones

Unread post 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.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

Re: Time zones

Unread post by biggles »

Thanks! Works like a charm!
Post Reply