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