GNU bug report logs - #54916
4 invalid dates reported by "date"

Previous Next

Package: coreutils;

Reported by: "Martins Ozolins" <mo98 <at> inbox.lv>

Date: Wed, 13 Apr 2022 15:32:02 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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#54916: closed (4 invalid dates reported by "date")
Date: Wed, 13 Apr 2022 19:20:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 13 Apr 2022 12:19:38 -0700
with message-id <8f847fc7-f985-a0b9-43b5-f96982dea15d <at> cs.ucla.edu>
and subject line Re: bug#54916: 4 invalid dates reported by "date"
has caused the debbugs.gnu.org bug report #54916,
regarding 4 invalid dates reported by "date"
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
54916: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=54916
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "Martins Ozolins" <mo98 <at> inbox.lv>
To: bug-coreutils <at> gnu.org
Subject: 4 invalid dates reported by "date"
Date: Wed, 13 Apr 2022 16:30:04 +0300
[Message part 3 (text/html, inline)]
[Message part 4 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Martins Ozolins <mo98 <at> inbox.lv>
Cc: 54916-done <at> debbugs.gnu.org
Subject: Re: bug#54916: 4 invalid dates reported by "date"
Date: Wed, 13 Apr 2022 12:19:38 -0700
On 4/13/22 06:30, Martins Ozolins via GNU coreutils Bug Reports wrote:
>     ozoma <at> ozoma-ThinkPad-X250:$ date +%s --date="1981-04-01"
>     date: invalid date ‘1981-04-01’

This is because your invocation is equivalent to:

date +%s --date="1981-04-01 00:00:00"

and there was no midnight at that date in Latvia.


This bug report was last modified 3 years and 117 days ago.

Previous Next


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