bug-coreutils
[Top][All Lists]
Advanced

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

Re: BUG: date 7.1 - reading date string


From: Klaus Bramstedt
Subject: Re: BUG: date 7.1 - reading date string
Date: Fri, 5 Feb 2010 09:03:59 +0100 (CET)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)

Dear Sven, Bob, Philip,

thank a lot for your hints! The daylight saving time (DST) is indeed the problem, so I have to use the '-u' option of date for proper working of my script. Sorry for bothering, I should have thought myself about this. Maybe an additional hint in the error message to the DST problem would help other users (like (DST gap))?

thanks again

Klaus


On Thu, 4 Feb 2010, Sven Joachim wrote:
Am 04.02.2010 um 14:45 schrieb Klaus Bramstedt:

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.

Yes, it's the non-existent hour during DST adjustment on the last Sunday
in March.  These dates are indeed invalid in the German timezone.

Sven

reply via email to

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