GNU bug report logs - #8356
date bug

Previous Next

Package: coreutils;

Reported by: Fulvio Donazzolo <fulvio.bz <at> gmail.com>

Date: Sun, 27 Mar 2011 18:11:02 UTC

Severity: normal

Tags: moreinfo, notabug

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8356 in the body.
You can then email your comments to 8356 AT debbugs.gnu.org in the normal way.

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

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


Report forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#8356; Package coreutils. (Sun, 27 Mar 2011 18:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Fulvio Donazzolo <fulvio.bz <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sun, 27 Mar 2011 18:11:02 GMT) Full text and rfc822 format available.

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

From: Fulvio Donazzolo <fulvio.bz <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: date bug
Date: Sun, 27 Mar 2011 16:48:32 +0200
$ date -d "02:50"
date: invalid date `02:50'


$ date -d "01:50"
Sun Mar 27 01:50:00 CET 2011

$ date -d "03:50"
Sun Mar 27 03:50:00 CEST 2011

bug only with "02:XX"




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#8356; Package coreutils. (Sun, 27 Mar 2011 19:41:02 GMT) Full text and rfc822 format available.

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

From: gmail <arbogast.cedric <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: bug#8356: date bug, precision, universal time not affected
Date: Sun, 27 Mar 2011 22:01:19 +0200
I notice this behavior with coreutils-8.9 :

    [root <at> pompomgalli]# /bin/date -d "02:50"
    /bin/date: invalid date `02:50'

The universal time parsing seems not affected :

    [root <at> pompomgalli]# /bin/date -u -d "02:50"
    Sun Mar 27 02:50:00 UTC 2011


Regards, Cédric.


Le 27/03/2011 16:48, Fulvio Donazzolo a écrit :
> $ date -d "02:50"
> date: invalid date `02:50'
>
>
> $ date -d "01:50"
> Sun Mar 27 01:50:00 CET 2011
>
> $ date -d "03:50"
> Sun Mar 27 03:50:00 CEST 2011
>
> bug only with "02:XX"
>
>
>





Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#8356; Package coreutils. (Sun, 27 Mar 2011 19:45:02 GMT) Full text and rfc822 format available.

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

From: Bob Proulx <bob <at> proulx.com>
To: Fulvio Donazzolo <fulvio.bz <at> gmail.com>
Cc: 8356 <at> debbugs.gnu.org
Subject: Re: bug#8356: date bug
Date: Sun, 27 Mar 2011 13:44:41 -0600
tags 8356 + moreinfo notabug
thanks

Fulvio Donazzolo wrote:
> $ date -d "02:50"
> date: invalid date `02:50'
> 
> $ date -d "01:50"
> Sun Mar 27 01:50:00 CET 2011
> 
> $ date -d "03:50"
> Sun Mar 27 03:50:00 CEST 2011
> 
> bug only with "02:XX"

Thank you for your report but this is almost certainly not a bug in
date but a misunderstanding of Daylight Savings Time in your timezone.

It looks to me like you have transitioned from CET) Central European
Time to CEST (Central European Summer Time).  During the transition
the local time "springs forward" and skips an hour.  During that hour
there is not any 02:XX time that is valid.  It does not exist.

Please read this FAQ and see if it matches your problem.  It includes
quite a lot of description of the issues.

  http://www.gnu.org/software/coreutils/faq/#The-date-command-is-not-working-right_002e

Bob




Added tag(s) notabug and moreinfo. Request was from Bob Proulx <bob <at> proulx.com> to control <at> debbugs.gnu.org. (Sun, 27 Mar 2011 19:45:03 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#8356; Package coreutils. (Sun, 27 Mar 2011 21:51:01 GMT) Full text and rfc822 format available.

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

From: Bob Proulx <bob <at> proulx.com>
To: gmail <arbogast.cedric <at> gmail.com>
Cc: 8356 <at> debbugs.gnu.org
Subject: Re: bug#8356: date bug, precision, universal time not affected
Date: Sun, 27 Mar 2011 15:50:03 -0600
gmail wrote:
> I notice this behavior with coreutils-8.9 :
> 
>     [root <at> pompomgalli]# /bin/date -d "02:50"
>     /bin/date: invalid date `02:50'
> 
> The universal time parsing seems not affected :
> 
>     [root <at> pompomgalli]# /bin/date -u -d "02:50"
>     Sun Mar 27 02:50:00 UTC 2011

Thank you for adding additional information to this bug report.
However this is not a bug in date but rather a misunderstanding of
Daylight Saving Time in your timezone.

With the transition from CET (Central European Time) to CEST (Central
European Summer Time) the 02:00 - 03:00 hour of time has been skipped.
It does not exist and is not a valid time.  This is not a bug in date.
This is by design of the law that specifies your timezone.

To avoid the political boundaries you can simply avoid the time near
to time change such as using 12:00 noon or you can use UTC which never
changes to or from daylight saving time.

Please see the FAQ for a detailed explanation.

  http://www.gnu.org/software/coreutils/faq/#The-date-command-is-not-working-right_002e

Bob




bug closed, send any further explanations to 8356 <at> debbugs.gnu.org and Fulvio Donazzolo <fulvio.bz <at> gmail.com> Request was from Bob Proulx <bob <at> proulx.com> to control <at> debbugs.gnu.org. (Sun, 10 Apr 2011 03:44:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 08 May 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 50 days ago.

Previous Next


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