Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-07-2004, 11:47 AM   #1
LQ Newbie
Registered: Oct 2003
Distribution: gentoo redhat debian
Posts: 7

Rep: Reputation: 0
linux time changes 1 hour -- after reboot

we are running a linux rsync server where keeping accurate dates and times is essential. today after rebooting the linux box, which has not occured in a few weeks the times of the files on our rsync shares is 1 hour retarded from before reboot? How can this happen? Is there any way to correct this? Is there any way of mass changing time stamps? Help.
Old 10-07-2004, 12:11 PM   #2
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
You can set the date with the 'date' command or, use 'ntpdate', or 'netdate' (you'll need to find either a local or remote time server to get the correct time).

after you have the correct time, update your compter's clock with 'hwclock -w'

To change all the timestamps in question, try 'touch filename'
Old 10-07-2004, 01:34 PM   #3
LQ Newbie
Registered: Oct 2003
Distribution: gentoo redhat debian
Posts: 7

Original Poster
Rep: Reputation: 0
its not that my time is wrong or my hardware time is wrong I use ntp to sync the time and that has stayed constant, including hardware time. Touch looks like it could work if I can figure out a way to touch all files recursivley and start with that particular files time and not the systems at the time of execution. Any suggestions?

Last edited by mrconover; 10-07-2004 at 01:48 PM.
Old 10-07-2004, 03:25 PM   #4
LQ Newbie
Registered: Oct 2003
Distribution: gentoo redhat debian
Posts: 7

Original Poster
Rep: Reputation: 0
figured out a solution - wrote a bash script using a for loop and touch.
Old 10-07-2004, 05:13 PM   #5
Senior Member
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Good solution, but the key is to figure out why you're having the problem. Often, it can indicate something else wrong.

Unfortunately, I don't have any ideas of where to look.

Good luck!



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
am/pm verses 24 hour time CouchMaster SUSE / openSUSE 8 05-20-2015 10:13 AM
modification time off 1 hour between linux and windows after DST adjustment pvlogin Linux - Software 3 11-01-2005 09:51 AM
Time updated by ntp is 1 hour behind jon1591 Linux - Newbie 2 06-21-2004 02:34 PM
Why is the time always an hour behind? aaa LQ Suggestions & Feedback 6 07-23-2003 12:34 PM
clock keeps going forward one hour every reboot. Frustin Linux - General 2 08-08-2002 02:44 AM > Forums > Linux Forums > Linux - Software

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

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