Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: jg@pa.dec.com (Jim Gettys)
To: axp-list@redhat.com
Cc: "Champigny, Michael" <Michael.Champigny@compaq.com>
Subject: Re: HELP! 19 Year date offset in RH 6.0
Date: Wed, 14 Jul 1999 13:01:03 -0700	[thread overview]
Message-ID: <9907142001.AA15345@pachyderm.pa.dec.com> (raw)
In-Reply-To: <11EB515FBDB3D111BF270000F84A9ED60436C7D5@shrexc1.shr.dec.com>


> From: "Champigny, Michael" <Michael.Champigny@compaq.com>
> Resent-From: axp-list@redhat.com
> Date: Wed, 14 Jul 1999 11:55:21 -0400
> To: "'axp-list@redhat.com'" <axp-list@redhat.com>
> Subject: HELP! 19 Year date offset in RH 6.0
> -----
> Is there a fix for the 19-year offset on the time in RH6.0?
> 
> I did a clean install of RH6.0 where I set the "get time from ARC" to
> true and UTC time to false. It didn't matter...I still get the year offset
> once the packages are installed initially.
> 
> Is there a way to get the dates back to the current time? The biggest
> problem is that linuxconf complains about printcap and other files
> having revision dates in the future and it's annoying getting those
> warning each time I use it.
> 
> Thanks!
> 

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


      reply	other threads:[~1999-07-14 20:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-14 15:55 HELP! 19 Year date offset in RH 6.0 Champigny, Michael
1999-07-14 20:01 ` Jim Gettys [this message]
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