GNU bug report logs - #13388
Date of 2012-10-21: "invalid date". Bug?

Previous Next

Package: coreutils;

Reported by: danilo <at> controlid.com.br

Date: Tue, 8 Jan 2013 17:13:01 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.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 13388 in the body.
You can then email your comments to 13388 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 bug-coreutils <at> gnu.org:
bug#13388; Package coreutils. (Tue, 08 Jan 2013 17:13:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to danilo <at> controlid.com.br:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 08 Jan 2013 17:13:01 GMT) Full text and rfc822 format available.

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

From: danilo <at> controlid.com.br
To: <bug-coreutils <at> gnu.org>
Cc: albert <at> controlid.com.br, david <at> controlid.com.br,
	fabio.ferreira <at> controlid.com.br
Subject: Date of 2012-10-21: "invalid date". Bug?
Date: Tue, 08 Jan 2013 11:02:50 -0200
[Message part 1 (text/plain, inline)]
  

Hi, 

 When I try to get the date of 2012-10-21: 

root <at> cidLogin:~#
date -d 20121021 

date: invalid date `20121021' 

 Is this a bug? The
result is the same both in Opensuse Tumbleweed and Ubuntu 12.04.


Thanks and sorry for disturbing, 

Danilo Luvizotto 

  
[Message part 2 (text/html, inline)]

Added tag(s) notabug. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Tue, 08 Jan 2013 17:34:01 GMT) Full text and rfc822 format available.

Reply sent to Eric Blake <eblake <at> redhat.com>:
You have taken responsibility. (Tue, 08 Jan 2013 17:34:02 GMT) Full text and rfc822 format available.

Notification sent to danilo <at> controlid.com.br:
bug acknowledged by developer. (Tue, 08 Jan 2013 17:34:02 GMT) Full text and rfc822 format available.

Message #12 received at 13388-done <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: danilo <at> controlid.com.br
Cc: albert <at> controlid.com.br, david <at> controlid.com.br, 13388-done <at> debbugs.gnu.org,
	fabio.ferreira <at> controlid.com.br
Subject: Re: bug#13388: Date of 2012-10-21: "invalid date". Bug?
Date: Tue, 08 Jan 2013 10:33:09 -0700
[Message part 1 (text/plain, inline)]
tag 13388 notabug
thanks

On 01/08/2013 06:02 AM, danilo <at> controlid.com.br wrote:
>   
> 
> Hi, 
> 
>  When I try to get the date of 2012-10-21: 
> 
> root <at> cidLogin:~#
> date -d 20121021 
> 
> date: invalid date `20121021' 
> 
>  Is this a bug?

No.  It is a factor of daylight savings in your timezone.  Midnight does
not exist in your locale on that particular date.

You can use --utc to force the use of times where daylight savings has
no impact.  For more information, see the FAQ:
https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-date-command-is-not-working-right_002e

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 06 Feb 2013 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 140 days ago.

Previous Next


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