From owner-freebsd-bugs@FreeBSD.ORG Wed Aug 16 09:30:17 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A464616A4E0 for ; Wed, 16 Aug 2006 09:30:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65ACC43D4C for ; Wed, 16 Aug 2006 09:30:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7G9UHOO041343 for ; Wed, 16 Aug 2006 09:30:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7G9UH88041342; Wed, 16 Aug 2006 09:30:17 GMT (envelope-from gnats) Date: Wed, 16 Aug 2006 09:30:17 GMT Message-Id: <200608160930.k7G9UH88041342@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: jau@iki.fi (Jukka A. Ukkonen) Cc: Subject: Re: bin/102121: strftime(3) fails on certain dates X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Jukka A. Ukkonen" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Aug 2006 09:30:17 -0000 The following reply was made to PR bin/102121; it has been noted by GNATS. From: jau@iki.fi (Jukka A. Ukkonen) To: bug-followup@FreeBSD.org Cc: Subject: Re: bin/102121: strftime(3) fails on certain dates Date: Wed, 16 Aug 2006 12:26:45 +0300 (EEST) Oops! I was a bit too hasty (and definitely too tired) to write the PR last night. The true culprit is strptime() that already parses the date "Tue, 15 Aug 2006 23:48:36 +0300 (EEST)" wrong producing 1597464000 on return, though the correct value should be 1155674916. (The offset here amounts to roughly 14 years. I.e. 2020 instead of 2006.) So, blame it on strptime(3) instead. Cheers, // jau .--- ..- -.- -.- .- .- .-.-.- ..- -.- -.- --- -. . -. / Jukka A. Ukkonen, Oxit Ltd, Finland /__ M.Sc. (sw-eng & cs) (Phone) +358-500-606-671 / Internet: Jukka.Ukkonen(a)Oxit.Fi (Home) +358-9-6215-280 / Internet: jau(a)iki.fi v .--- .- ..- ...-.- .. -.- .. .-.-.- ..-. .. + + + + My opinions are mine and mine alone, not my employers. + + + +