From owner-freebsd-current Fri Apr 2 13: 8:18 1999 Delivered-To: freebsd-current@freebsd.org Received: from relay.nuxi.com (nuxi.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id 7876714E1A for ; Fri, 2 Apr 1999 13:06:21 -0800 (PST) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by relay.nuxi.com (8.9.2/8.9.1) id NAA64258 for freebsd-current@freebsd.org; Fri, 2 Apr 1999 13:06:02 -0800 (PST) (envelope-from obrien) Message-ID: <19990402130602.C64197@nuxi.com> Date: Fri, 2 Apr 1999 13:06:02 -0800 From: "David O'Brien" To: freebsd-current@freebsd.org Subject: Re: Dates off by 1 year (was: Fools Day Joke ?) Reply-To: obrien@NUXI.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i X-Operating-System: FreeBSD 3.1-STABLE Organization: The NUXI BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Here is the explanation for the problem from the NcFTP author: ----- Forwarded message from Mike Gleason ----- Date: Fri, 02 Apr 1999 12:39:07 -0600 Subject: Re: (FWD) Re: Dates off by 1 year (was: Fools Day Joke ?) The problem is that NcFTP 3 tries to parse the output of the listing and stores it in an internal format, and when the listing is actually displayed, it is recreated from the saved data. I.e., the listing's date is converted to a time_t, and then reformatted later. Due to timezone differences between client and server, this can never be 100% accurate (until more FTP servers adopt the new machine-readable directory listings). However, /bin/ls prints two different formats for the date. One is "mmm dd yyyy", and the other is "mmm dd HH:MM". The second format is used when the file is less than six months old, or less than one hour into the future. The beta 18 code's logic is flawed, since it guesses the year wrong when the file is very new and the timezone discrepancy make the preliminary time_t conversion appear that the file is "too far" into the future. The good news is that this is easily correctible. Sorry the wild goose chase :-) Mike Gleason ----- End forwarded message ----- -- -- David (obrien@NUXI.com -or- obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message