LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   centos 5.x time change automatically (https://www.linuxquestions.org/questions/linux-newbie-8/centos-5-x-time-change-automatically-815355/)

salimshahzad 06-21-2010 01:10 AM

centos 5.x time change automatically
 
dear sir,

i am using squid proxy on centos 5.x release with stable version. during installation time i fixed date time region.

it was basicaly gmt +3:00 hours. so everything was fixed, now since past few days every 24 hours it change its time automaatically. this looks like it take update somewhere from internet or internally something is mess up.

could someone guide me how to fixed permanantly date time. even either restart the machine or passing 24 hours it do never change it. etc

i do change using

date -s
clock -w

advise suggest plz

regards

centosboy 06-21-2010 02:57 AM

Quote:

Originally Posted by salimshahzad (Post 4009821)
dear sir,

i am using squid proxy on centos 5.x release with stable version. during installation time i fixed date time region.

it was basicaly gmt +3:00 hours. so everything was fixed, now since past few days every 24 hours it change its time automaatically. this looks like it take update somewhere from internet or internally something is mess up.

could someone guide me how to fixed permanantly date time. even either restart the machine or passing 24 hours it do never change it. etc

i do change using

date -s
clock -w

advise suggest plz

regards

Use ntpdate in a crontab. If you run this about every 20 mins, your time will stay correct.

Man ntpdate

AlucardZero 06-21-2010 06:42 AM

Or use the ntp daemon


All times are GMT -5. The time now is 10:37 AM.