Thank you all,
On Tue, Oct 4, 2011 at 4:26 PM, lists-centos replies-lists-b3z2-centos@listmail.innovate.net wrote:
2 - you can do the symbolic link, but i believe that RH moved away from that approach for some reason. the appropriate TZ file is copied to /etc/localtime when the TZ is selected on install or changed.
is there maybe a command for setting TZ "in a CentOS way"?
I've looked for redhat-* centos-* system-* in /sbin and /usr/sbin
Regards Alex
And also, which /etc/localtime do I have now?
Is there a way to find out besides running "diff"?
Actually I already seem to have the correct timezone file, but why is the time wrong?
afarber@CentOS-60-64-minimal:~> sudo diff /usr/share/zoneinfo/Europe/Berlin /etc/localtime
afarber@CentOS-60-64-minimal:~> date Wed Oct 5 00:35:39 CEST 2011
Should I:
chkconfig ntp on service ntp start
Or is the reasone elsewhere?
Sorry for the basic questions, I'm new to CentOS 6
Regards Alex
Alexander Farber writes:
Actually I already seem to have the correct timezone file, but why is the time wrong?
afarber@CentOS-60-64-minimal:~> sudo diff /usr/share/zoneinfo/Europe/Berlin /etc/localtime
afarber@CentOS-60-64-minimal:~> date Wed Oct 5 00:35:39 CEST 2011
Should I:
chkconfig ntp on service ntp start
Or is the reasone elsewhere?
Sorry for the basic questions, I'm new to CentOS 6
ntp will change the time in small increments only. If there's a big gap, and if you can live with a big jump, set the time manually and then enable ntp.
Also check out system-config-date-1.9.60-1.el6.noarch.rpm.
Actually it is working now, thank you all!
[root@preferans afarber]# cat /etc/sysconfig/clock ZONE="Europe/Berlin" [root@preferans afarber]# /etc/init.d/ntpd status ntpd (pid 1365) is running... [root@preferans afarber]# /sbin/hwclock Tue 04 Oct 2011 07:10:06 PM CEST -0.797338 seconds [root@preferans afarber]# date Tue Oct 4 19:10:09 CEST 2011