GNU Core Utilities - Bugs: bug #11687, GNU date doesn't discriminate...
You are not allowed to post comments on this tracker with your current authentication level.
bug #11687: GNU date doesn't discriminate between + and - in relative dates.
Submitter: | Ingvar Mattsson <ingvar> | ||
Submitted: | Fri 21 Jan 2005 07:22:35 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | Fixed |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed |
Fri 21 Jan 2005 11:43:13 PM UTC, comment #1: |
Paul Eggert <eggert> |
Fri 21 Jan 2005 07:22:35 PM UTC, original submission:
GNU date doesn't discriminate between + and - in relative dates. This may well affect all GNU coreutils using the same date parsing library.
|
Ingvar Mattsson <ingvar> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2005-01-21 | eggert | Status | None | Fixed | |
Open/Closed | Open | Closed |
Powered by Savane 3.13-02a9.
Corresponding source code
The sign bug appears to be fixed in coreutils 5.3.0:
$ date; date -d "1715 - 15 minutes"; date -d "1715 + 15 minutes"; date -d "1715 + 15 minutes ago"; date -d "1715 - 15 minutes ago"; date -d "- 1 month"; date; date --version
Fri Jan 21 15:33:47 PST 2005
date: invalid date `1715 - 15 minutes'
date: invalid date `1715 + 15 minutes'
date: invalid date `1715 + 15 minutes ago'
date: invalid date `1715 - 15 minutes ago'
Tue Dec 21 15:33:47 PST 2004
Fri Jan 21 15:33:47 PST 2005
date (GNU coreutils) 5.3.0
Written by David MacKenzie.
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
As you can see, a few other parsing details have changed,
due to the ambiguity between time zone indications and
the offset notation; but at least `date -d "- 1 month"'
works.