GNU bug report logs - #32288
date(1) Produces ISO 8601 it Won't Take Back.

Previous Next

Package: coreutils;

Reported by: Ralph Corderoy <ralph <at> inputplus.co.uk>

Date: Fri, 27 Jul 2018 11:35: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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ralph Corderoy <ralph <at> inputplus.co.uk>
Subject: bug#32288: closed (Re: bug#32288: date(1) Produces ISO 8601 it
 Won't Take Back.)
Date: Mon, 30 Jul 2018 02:01:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#32288: date(1) Produces ISO 8601 it Won't Take Back.

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 32288 <at> debbugs.gnu.org.

-- 
32288: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32288
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Ralph Corderoy <ralph <at> inputplus.co.uk>, 32288-done <at> debbugs.gnu.org
Subject: Re: bug#32288: date(1) Produces ISO 8601 it Won't Take Back.
Date: Sun, 29 Jul 2018 19:00:01 -0700
On 07/27/2018 04:34 AM, Ralph Corderoy wrote:
>     $ date -uIs -d @-62135596801
>     0000-12-31T23:59:59+00:00                           
>     $ date -uIs -d @0000-12-31T23:59:59+00:00
>     date: invalid date ‘@0000-12-31T23:59:59+00:00’     
>     $
>
> If date thinks it's valid ISO 8601 when it outputs it,
> I'd expect it to be considered valid input to take back.

As it would have, if you had actually given back exactly what you gave
it. But you prepended '@'.


[Message part 3 (message/rfc822, inline)]
From: Ralph Corderoy <ralph <at> inputplus.co.uk>
To: bug-coreutils <at> gnu.org
Subject: date(1) Produces ISO 8601 it Won't Take Back.
Date: Fri, 27 Jul 2018 12:34:11 +0100
Hi,

coreutils 8.29-1 on Arch Linux.

    $ date -uIs -d @-62135596801
    0000-12-31T23:59:59+00:00                           
    $ date -uIs -d @0000-12-31T23:59:59+00:00
    date: invalid date ‘@0000-12-31T23:59:59+00:00’     
    $

If date thinks it's valid ISO 8601 when it outputs it,
I'd expect it to be considered valid input to take back.

Cheers, Ralph.



This bug report was last modified 6 years and 302 days ago.

Previous Next


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