Article View: comp.os.linux.development.system
Article #22Re: A whacky DATE bug in Linux - Problem gets crazier!
From: Peter B. West
Date: Sun, 27 Sep 1998 00:00
Date: Sun, 27 Sep 1998 00:00
49 lines
3085 bytes
3085 bytes
Ron House wrote: > > I am starting to suspect you are right, that there is a newly created > bug in here somewhere. But why am I the only person on the planet to > notice it??? Probably because you are one of the few people to whom the synchronisation of timestamps on linux and the DOS partition is important. I tried it on my 2.0.34 RedHat 5.1 system and saw the same problem. > My only lead at present is from Doug Moir, who suggests getting a new > version of clock. I'll do that next. I don't think that clock is the problem. I think the error is in the handling of VFAT timestamps. > The explanation that makes most sense to me is that the kernel's > variable sys_tz is set wrongly, but I don't know how to check its value > or change it if it is wrong. > > The commands date and date -u both show the right info. As they do on my system, and this shows that the system is fully aware of where it is, and what the UTC is. If you try date date -u (as you have) and /sbin/hwclock --show /sbin/hwclock --utc --show (which will show a time 10 hours *ahead* of local time if your hardware is set to local time), and perl -e '$gt = gmtime;print "$gt\n";$lt = localtime;print "$lt\n";' and they all show consistent values, then both the hardware clock and the system clock are working. To Dietrich Timm: Dietrich, the daylight saving flag would be a possible source of difficulties, but would not explain a 10 hour difference, and is not relevant to Queensland because, sensibly, we do not have daylight saving. I believe that nowadays win95 recognises this difference between Queensland and the southern states. Yours faithfully, -- __ /__ Peter B. West p.west@uq.net.au / http://www.uq.net.au/~zzpwest / "Lord, to whom shall we go?"
Technical Details
Message-ID:
<360E42BB.CF1DF123@uq.net.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3601D4F7.247C8BC2@usq.edu.au> <3607ABBA.1952C377@uq.net.au> <36087C67.3313582C@usq.edu.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5392,12de531511895886 X-Google-Attributes: gidf5392,public X-Google-Thread: 10c696,12de531511895886 X-Google-Attributes: gid10c696,public X-Google-Thread: ff9be,12de531511895886 X-Google-Attributes: gidff9be,public X-Google-Thread: f9382,12de531511895886 X-Google-Attributes: gidf9382,public X-Google-Thread: f9b51,12de531511895886 X-Google-Attributes: gidf9b51,public X-Google-Thread: 100c5f,12de531511895886 X-Google-Attributes: gid100c5f,public X-Google-Thread: 102983,12de531511895886 X-Google-Attributes: gid102983,public X-Google-Thread: faa64,12de531511895886 X-Google-Attributes: gidfaa64,public From: "Peter B. West" <p.west@uq.net.au> Subject: Re: A whacky DATE bug in Linux - Problem gets crazier! Date: 1998/09/27 Message-ID: <360E42BB.CF1DF123@uq.net.au> X-Deja-AN: 395312305 Content-Transfer-Encoding: 7bit References: <3601D4F7.247C8BC2@usq.edu.au> <3607ABBA.1952C377@uq.net.au> <36087C67.3313582C@usq.edu.au> Content-Type: text/plain; charset=us-ascii Organization: Dis Mime-Version: 1.0 Newsgroups: comp.os.linux.development.system,comp.os.linux.development.apps,comp.os.linux.setup,alt.linux,alt.os.linux,comp.os.linux,comp.os.linux.questions,aus.computers.linux