On Tue, 30 Oct 2007, Jim Meyering wrote:
I'm hardly the authority on such TZ things, but would have thought the
invalid zones are those two intervals (one per line), which are
nominally two and one hours long. It looks like they're two different
views of the same two-real-hour interval. The first uses the DST
(isdst=1) times, and the second non-DST times.
Date's -d option interprets an empty string just like "0", which is
interpreted as 00:00 in the current day.
Ah, that makes the problem easier to present:
$ export TZ=Europe/Paris
$ export LD_PRELOAD=./clock_gettime.so
$ FAKETIME=1193533200 date -d ""
date: invalid date `'
$ FAKETIME=1193533200 date -d "0"
Sun Oct 28 00:00:00 CEST 2007
-d "" and -d "0" are not equivalent in this case.
Cheers,
Phil
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils