From: Todd Henderson <Todd_Henderson@readwo.com>
To: Jim Gettys <jg@pa.dec.com>, axp-list@redhat.com
Subject: Re: Where does Linux get the date from?
Date: Wed, 03 Nov 1999 10:55:58 -0600 [thread overview]
Message-ID: <3820691D.773E10C@readwo.com> (raw)
In-Reply-To: 199911031647.IAA07627@pachyderm.pa.dec.com
Thanks. It worked. I keep all of the email from the list on my
workstation and looked through it, but I didn't find any I thought
pretained to what the problem was. Anyway, thanks for the fix.
Todd
Jim Gettys wrote:
> 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 17:00 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 ` Where does Linux get the date from? Jim Gettys
1999-11-03 16:55 ` Todd Henderson [this message]
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