How to change Local Time zone and configure NTP
If you want to set time yourself try the following command:
date 07241503
where 07 is month, 24 is date, 15 is hour and 03 is minute.
ntpdate 0.centos.pool.ntp.org
If ntp server is taking wrong time because of wrong time zone, then you can easily check timezone.
service ntpd stop
cp /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
ntpdate 0.centos.pool.ntp.org
service ntpd start
chkconfig ntpd on
:)
Thanks,
(The above is tested on CentOS 6.5 - Suitable for CentOS 5,6,6.x and RHEL5,6,6.x)
No comments:
Post a Comment