GNU bug report logs - #44240
coreutils 8.30-3ubuntu2 "date" command doesn't like one specific date: 2020-09-06

Previous Next

Package: coreutils;

Reported by: Leo Wandersleb <leo.wandersleb <at> gmx.de>

Date: Mon, 26 Oct 2020 15:29:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Leo Wandersleb <leo.wandersleb <at> gmx.de>
To: 44240 <at> debbugs.gnu.org
Subject: bug#44240: coreutils 8.30-3ubuntu2 "date" command doesn't like one specific date: 2020-09-06
Date: Mon, 26 Oct 2020 12:14:53 -0300
Hi,

for some reason I get an error with one specific date but not with others:

$ for i in 08 09 10; do for j in 5 6 7; do d="2020-$i-0$j"; echo $d $( date
-d"$d" ); done; done
2020-08-05 Wed 05 Aug 2020 12:00:00 AM -04
2020-08-06 Thu 06 Aug 2020 12:00:00 AM -04
2020-08-07 Fri 07 Aug 2020 12:00:00 AM -04
2020-09-05 Sat 05 Sep 2020 12:00:00 AM -04
date: invalid date ‘2020-09-06’
2020-09-06
2020-09-07 Mon 07 Sep 2020 12:00:00 AM -03
2020-10-05 Mon 05 Oct 2020 12:00:00 AM -03
2020-10-06 Tue 06 Oct 2020 12:00:00 AM -03
2020-10-07 Wed 07 Oct 2020 12:00:00 AM -03

Regards,

Leo Wandersleb




This bug report was last modified 4 years and 235 days ago.

Previous Next


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