LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-21-2010, 02:10 AM   #1
salimshahzad
Member
 
Registered: Dec 2009
Posts: 200

Rep: Reputation: 15
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
 
Old 06-21-2010, 03:57 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by salimshahzad View Post
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
 
Old 06-21-2010, 07:42 AM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
Or use the ntp daemon
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS time problem - time goes to fast Stressik Linux - Software 3 03-29-2010 06:23 AM
Howto change the shell Automatically each time i login??? teddyZA Linux - Software 5 04-27-2007 10:39 AM
Change Time automatically in linux juanb Linux - Software 5 09-24-2005 07:20 AM
My computer restart automatically from time to time ?? pleasehelpme Linux - Newbie 2 07-04-2005 05:29 PM
time doesn't change automatically ashley75 Linux - General 2 10-27-2003 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration