|
From: | Philip Rowlands |
Subject: | Re: Bug in 'date -d': timezone trouble |
Date: | Wed, 12 Sep 2007 15:02:34 +0100 (BST) |
On Wed, 12 Sep 2007, Eric Blake wrote:
% date -d "07-09-10 10:45:43 + 1 minute" Mon Sep 10 03:45:43 PDT 2007Try taking out the plus sign - date interprets this as a timezone specifier.Indeed. This question has been asked before: http://lists.gnu.org/archive/html/bug-coreutils/2007-07/msg00071.html
Would it be worthwhile adding yydebug support to date (and touch) with, say, a --date-debug flag? I tried turning it on and the output is confusingly dense, not even printing the token in all cases.
I see from the bison manual that a custom yyprint function can be provided, but I'm not familiar enough with parsers to suggest one.
Cheers, Phil
[Prev in Thread] | Current Thread | [Next in Thread] |