Hello, I have a problem configuring the timezone on a CentOS 5.5 server. I would like the timezone to be Europe/Paris. I have followed the steps described here: http://www.wikihow.com/Change-the-Timezone-in-Linux I think I have changed the appropriate configuration files ( /etc/localtime, /etc/sysconfig/clock ), but the output of the ?date? command still indicates the timezone is EST. [root at xxx ~]# cat /etc/redhat-release CentOS release 5.5 (Final) [root at s15370074 ~]# ls -l /etc/localtime lrwxrwxrwx 1 root root 32 Feb 19 18:31 /etc/localtime -> /usr/share/zoneinfo/Europe/Paris [root at xxx ~]# cat /etc/sysconfig/clock ZONE="Europe/Paris" UTC=true ARC=false [root at xxx ~]# echo $TZ [root at xxx ~]# [root at xxx ~]# date Sun Feb 20 18:01:28 EST 2011 [root at xxx ~]# rdate -s time.mit.edu [root at xxx ~]# hwclock ?systohc [root at xxx ~]# date Sun Feb 20 18:03:34 EST 2011 Note that I have even completely rebooted the server, with no effect. Am I missing something important ? Thank you in advance for your suggestions ! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20110221/e17292ba/attachment.html>
On 02/20/2011 07:41 PM, John Nash wrote:> Am I missing something important ?Is your /usr a separate partition? If so try to copy /usr/share/zoneinfo/Europe/Paris to /etc/localtime (instead of it being a symbolic link). See if that works. -- Jorge
On Mon, 2011-02-21 at 00:41 +0100, John Nash wrote:> > Hello, > > I have a problem configuring the timezone on a CentOS 5.5 server. > I would like the timezone to be Europe/Paris. > > I have followed the steps described here: > http://www.wikihow.com/Change-the-Timezone-in-Linux > > I think I have changed the appropriate configuration files > ( /etc/localtime, /etc/sysconfig/clock ), but the output of the ?date? > command still indicates the timezone is EST. > > > [root at xxx ~]# cat /etc/redhat-release > CentOS release 5.5 (Final) > [root at s15370074 ~]# ls -l /etc/localtime > lrwxrwxrwx 1 root root 32 Feb 19 18:31 /etc/localtime > -> /usr/share/zoneinfo/Europe/Paris > [root at xxx ~]# cat /etc/sysconfig/clock > ZONE="Europe/Paris" > UTC=true > ARC=false > [root at xxx ~]# echo $TZ > > [root at xxx ~]# > [root at xxx ~]# date > Sun Feb 20 18:01:28 EST 2011 > [root at xxx ~]# rdate -s time.mit.edu > [root at xxx ~]# hwclock ?systohc > [root at xxx ~]# date > Sun Feb 20 18:03:34 EST 2011 > > > Note that I have even completely rebooted the server, with no effect. > > Am I missing something important ? > > Thank you in advance for your suggestions ! >I think you can very easily accomplish this task using the pull down GUI "Administration" "Date & Time" give the root password and then select the zone from the image presented to you. It's always worked for me.> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20110220/e4015ff5/attachment.html>
On Mon, Feb 21, 2011 at 1:41 AM, John Nash <centos at nikomachus.info> wrote:> > Hello, > > I have a problem configuring the timezone on a CentOS 5.5 server. > I would like the timezone to be Europe/Paris. > > I have followed the steps described here: > http://www.wikihow.com/Change-the-Timezone-in-Linux > > I think I have changed the appropriate configuration files ( /etc/localtime, > /etc/sysconfig/clock ), but the output of the ?date? command still indicates > the timezone is EST. > > > [root at xxx ~]# cat /etc/redhat-release > CentOS release 5.5 (Final) > [root at s15370074 ~]# ls -l /etc/localtime > lrwxrwxrwx 1 root root 32 Feb 19 18:31 /etc/localtime -> > /usr/share/zoneinfo/Europe/Paris > [root at xxx ~]# cat /etc/sysconfig/clock > ZONE="Europe/Paris" > UTC=true > ARC=false > [root at xxx ~]# echo $TZ > > [root at xxx ~]# > [root at xxx ~]# date > Sun Feb 20 18:01:28 EST 2011 > [root at xxx ~]# rdate -s time.mit.edu > [root at xxx ~]# hwclock ?systohc > [root at xxx ~]# date > Sun Feb 20 18:03:34 EST 2011 > > > Note that I have even completely rebooted the server, with no effect. > > Am I missing something important ? > > Thank you in advance for your suggestions ! > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >why work hard? yum install system-config-date system-config-date -- Best Regards, Yonatan Pingle RHCT | RHCSA | CCNA1