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


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: bug-gnulib <at> gnu.org, 48085 <at> debbugs.gnu.org
Subject: bug#48085: [PATCH 3/3] mktime: improve tm_isdst heuristic
Date: Sun, 5 Jan 2025 20:50:27 -0800
[Message part 1 (text/plain, inline)]
On 2025-01-05 07:07, Pádraig Brady wrote:
> I notice coreutils CI is now failing in a gnulib test with:
> 
> test-parse-datetime.c:419: assertion 'result.tv_sec == 515107490 - 60 * 
> 60 + (has_leap_seconds ? 13 : 0)' failed
> 
> Adding some extra debug I see that
> result.tv_sec is 1 hour too late (i.e. 515107490).
> 
> This test is related to https://bugs.gnu.org/48085

Yes, it looks like that test is too picky, since Bug#48085 is about 
parse_datetime failing rather than about a particular value. Although I 
could not reproduce the test failure on either Fedora 41 or Ubuntu 24.10 
I installed the attached patch, which I hope fixes things for the 
coreutils CI (for which I don't know the build+run environment).

[0001-parse-datetime-tests-port-to-Gnulib-mktime.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.