From: jg@pa.dec.com (Jim Gettys)
To: axp-list@redhat.com
Cc: Todd Henderson <Todd_Henderson@readwo.com>
Subject: Re: Where does Linux get the date from?
Date: Wed, 3 Nov 1999 08:47:59 -0800 (PST) [thread overview]
Message-ID: <199911031647.IAA07627@pachyderm.pa.dec.com> (raw)
In-Reply-To: <38205760.9FFDF614@readwo.com>
This needs to be a FAQ on various web sites:
- Jim
Two pieces to the puzzle: How to get the CMOS set to the right year,
as some SRM consoles seem to have no way to set the time (causing
one to try to set it from ARC; unfortunately, there is a 19 year
difference in belief between the two.). Why the kernel doesn't
do this when you execute the date(8) command is beyond me...
This is solved using the clock(8) command, which can be used
to update the CMOS clock to the current year in the right format.
Then there is the problem of fixing the files you've installed.
Per Michal Jaegerman:
Once you got > your clock runing ok the simplest "fix" is to do the
following:
touch /tmp/now
find / -newer /tmp/now | xargs touch
rm /tmp/now
This will reset all dates "in advance" to the current time. Not the
best solution but it works. You can get fancier if you wish as
'touch' allows you to set dates on files to whatever you wish, so
you can read them and set them back by a fixed number of years in a
shell script (or perl, or awk, or ...).
This will not change dates on symbolic links but this is minor in a
sense.
Hope this helps...
- Jim Gettys
next prev parent reply other threads:[~1999-11-03 16:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-03 13:47 Xpert98 video card Adam K Kirchhoff
1999-11-03 14:06 ` Eric Jones
1999-11-03 15:40 ` Where does Linux get the date from? Todd Henderson
1999-11-03 16:47 ` Xiaozhou Qiu
1999-11-05 7:58 ` CDROM problem changed Jamesvi
1999-11-03 16:47 ` Jim Gettys [this message]
1999-11-03 16:55 ` Where does Linux get the date from? Todd Henderson
1999-11-03 16:49 ` Christian Iseli
1999-11-03 16:51 ` Wes Bauske
1999-11-03 16:47 ` Xpert98 video card Stephen Williams
1999-11-03 17:20 ` Adam K Kirchhoff
-- strict thread matches above, loose matches on Subject: below --
1999-11-03 19:29 Where does Linux get the date from? On Fire
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox