bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BUG: date 7.1 - reading date string


From: Klaus Bramstedt
Subject: BUG: date 7.1 - reading date string
Date: Thu, 4 Feb 2010 14:45:48 +0100 (CET)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)

Dear coreutils-team,

I used the command
 date -d "$DATE"
for almost all dates between Aug 2002 end Jan 2010 in a script.
Date has a format like this
   "2003-03-30 02:08:17"
However, 7 of 42048 randomly distributed dates in the list failed:

date: ungültiges Datum „2003-03-30 02:08:17“
date: ungültiges Datum „2003-03-30 02:25:58“
date: ungültiges Datum „2005-03-27 02:08:41“
date: ungültiges Datum „2006-03-26 02:41:44“
date: ungültiges Datum „2008-03-30 02:08:09“
date: ungültiges Datum „2009-03-29 02:09:26“
date: ungültiges Datum „2007-03-25 02:03:47“

For me, this seems to be a bug in the date reading part. The critical combination seems to be end of March and '02' as hour.

My setup:
----
uname -a
Linux **** 2.6.31.8-0.1-desktop #1 SMP PREEMPT 2009-12-15 23:55:40 +0100 x86_64 x86_64 x86_64 GNU/Linux
--- (LANG=C gives the same errore)
echo $LANG
de_DE.UTF-8
---
date --version
date (GNU coreutils) 7.1
Copyright © 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


No need for an direkt answer, this is not critical for me.

best regards

Klaus Bramstedt


__________________________________________________________________________
Dr. Klaus Bramstedt                               Tel.  +49/421/218-62084
                                                                   ^^^^^^^
Institute of Environmental Physics (IUP)/         Fax   +49/421/218-4555
       Institute of Remote Sensing (ife)
University of Bremen, NW1
Otto-Hahn-Allee 1
D-28359 Bremen, Germany
                        E-mail: address@hidden
                           WWW:             http://www.iup.uni-bremen.de
__________________________________________________________________________


reply via email to

[Prev in Thread] Current Thread [Next in Thread]