GNU bug report logs - #58494
touch resists date 2022-09-11T00:00:00

Previous Next

Package: coreutils;

Reported by: "Felix Freeman" <libsys <at> hacktivista.org>

Date: Thu, 13 Oct 2022 14:30:02 UTC

Severity: normal

To reply to this bug, email your comments to 58494 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#58494; Package coreutils. (Thu, 13 Oct 2022 14:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Felix Freeman" <libsys <at> hacktivista.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Thu, 13 Oct 2022 14:30:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Felix Freeman" <libsys <at> hacktivista.org>
To: <bug-coreutils <at> gnu.org>
Subject: touch resists date 2022-09-11T00:00:00
Date: Wed, 12 Oct 2022 22:58:14 -0300
I think I found a bug. In any format that I try to touch a file with the
date 2022-09-11 at 00:00, touch says I'm entering an invalid date
format.

    $ touch -t 202209110000 algo
    touch: invalid date format ‘202209110000’
    $ touch -d 2022-09-11T00:00:00 algo
    touch: invalid date format ‘2022-09-11T00:00:00’

If I change date or hour it works flawlessly

    $ touch -d 2022-09-11T01:00:00 algo
    $ echo $?
    0

Felix Freeman




Information forwarded to bug-coreutils <at> gnu.org:
bug#58494; Package coreutils. (Thu, 13 Oct 2022 17:43:02 GMT) Full text and rfc822 format available.

Message #8 received at 58494 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Felix Freeman <libsys <at> hacktivista.org>
Cc: 58494 <at> debbugs.gnu.org
Subject: Re: bug#58494: touch resists date 2022-09-11T00:00:00
Date: Thu, 13 Oct 2022 10:42:12 -0700
On 2022-10-12 18:58, Felix Freeman via GNU coreutils Bug Reports wrote:
>      $ touch -t 202209110000 algo
>      touch: invalid date format ‘202209110000’
>      $ touch -d 2022-09-11T00:00:00 algo
>      touch: invalid date format ‘2022-09-11T00:00:00’

In Santiago, Chile, that timestamp does not exist. Is your timezone set 
to Santiago time? That would explain your symptoms.




Information forwarded to bug-coreutils <at> gnu.org:
bug#58494; Package coreutils. (Thu, 13 Oct 2022 18:52:02 GMT) Full text and rfc822 format available.

Message #11 received at 58494 <at> debbugs.gnu.org (full text, mbox):

From: "Felix Freeman" <libsys <at> hacktivista.org>
To: "Paul Eggert" <eggert <at> cs.ucla.edu>
Cc: 58494 <at> debbugs.gnu.org
Subject: Re: bug#58494: touch resists date 2022-09-11T00:00:00
Date: Thu, 13 Oct 2022 15:47:35 -0300
On Thu Oct 13, 2022 at 2:42 PM -03, Paul Eggert wrote:
> On 2022-10-12 18:58, Felix Freeman via GNU coreutils Bug Reports wrote:
> >      $ touch -t 202209110000 algo
> >      touch: invalid date format ‘202209110000’
> >      $ touch -d 2022-09-11T00:00:00 algo
> >      touch: invalid date format ‘2022-09-11T00:00:00’
>
> In Santiago, Chile, that timestamp does not exist. Is your timezone set 
> to Santiago time? That would explain your symptoms.

I am, but I don't understand why the timezone would make a time not to
exist... What am I missing?

CC = 20
YY = 22
MM = 09
DD = 11
hh = 00
mm = 00

Felix Freeman




Information forwarded to bug-coreutils <at> gnu.org:
bug#58494; Package coreutils. (Thu, 13 Oct 2022 18:55:02 GMT) Full text and rfc822 format available.

Message #14 received at 58494 <at> debbugs.gnu.org (full text, mbox):

From: "Felix Freeman" <libsys <at> hacktivista.org>
To: "Paul Eggert" <eggert <at> cs.ucla.edu>
Cc: 58494 <at> debbugs.gnu.org
Subject: Re: bug#58494: touch resists date 2022-09-11T00:00:00
Date: Thu, 13 Oct 2022 15:54:25 -0300
> > In Santiago, Chile, that timestamp does not exist. Is your timezone set 
> > to Santiago time? That would explain your symptoms.
>
> I am, but I don't understand why the timezone would make a time not to
> exist... What am I missing?

Uh, oh, it's daylight saving time change... never thought of that. Good
catch!

Felix Freeman




This bug report was last modified 2 years and 45 days ago.

Previous Next


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