From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 26623 invoked from network); 14 Jul 1999 20:07:57 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 14 Jul 1999 20:07:57 -0000 Received: from mail2.digital.com (mail2.digital.com [204.123.2.56]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA04268 for ; Wed, 14 Jul 1999 16:01:05 -0400 Received: from pachyderm.pa.dec.com (pachyderm.pa.dec.com [16.4.16.23]) by mail2.digital.com (8.9.2/8.9.2/WV2.0g) with SMTP id NAA06978; Wed, 14 Jul 1999 13:01:03 -0700 (PDT) Received: by pachyderm.pa.dec.com; id AA15345; Wed, 14 Jul 1999 13:01:03 -0700 Date: Wed, 14 Jul 1999 13:01:03 -0700 From: jg@pa.dec.com (Jim Gettys) Message-Id: <9907142001.AA15345@pachyderm.pa.dec.com> X-Mailer: Pachyderm (client biashara.crl.dec.com, user jg) To: axp-list@redhat.com Cc: "Champigny, Michael" In-Reply-To: <11EB515FBDB3D111BF270000F84A9ED60436C7D5@shrexc1.shr.dec.com> Subject: Re: HELP! 19 Year date offset in RH 6.0 Mime-Version: 1.0 Content-Type: text/plain > From: "Champigny, Michael" > Resent-From: axp-list@redhat.com > Date: Wed, 14 Jul 1999 11:55:21 -0400 > To: "'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