GNU bug report logs - #48085
date -d greater than 23 years ago gives error invalid date

Previous Next

Package: coreutils;

Reported by: Mark Krenz <mark <at> slugbug.org>

Date: Wed, 28 Apr 2021 20:31:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 48085-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Mark Krenz <mark <at> slugbug.org>
Cc: Gnulib bugs <bug-gnulib <at> gnu.org>, 48085-done <at> debbugs.gnu.org
Subject: Re: bug#48085: date -d greater than 23 years ago gives error invalid
 date
Date: Sat, 19 Feb 2022 15:57:16 -0800
[Message part 1 (text/plain, inline)]
On 4/28/21 16:23, Mark Krenz wrote:
> So I'm not sure if this is a problem with coreutils or a change in the
> zoneinfo database. Any ideas?

This appears to be a problem in the GNU C library, when its mktime 
deciphers the relatively unusual time zone history of Indiana.

I installed the attached patch into Gnulib and propagated it into 
Coreutils, so the issue should be fixed in the next release of GNU 
Coreutils. Eventually this patch should migrate from Gnulib to glibc so 
that other apps get the fix. Thanks for reporting the issue.
[0001-mktime-improve-heuristic-for-ca-1986-Indiana-DST.patch (text/x-patch, attachment)]

This bug report was last modified 187 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.