GNU Core Utilities - Bugs: bug #11290, "date" cannot parse its...
You are not allowed to post comments on this tracker with your current authentication level.
bug #11290: "date" cannot parse its own ISO 8601 output
Submitter: | None | ||
Submitted: | Fri 10 Dec 2004 12:38:45 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | Wont Fix |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed |
Sat 08 Mar 2008 09:54:48 AM UTC, comment #3: |
Jim Meyering <meyering> |
Thu 21 Jul 2005 06:14:04 PM UTC, comment #2: Here's another possible patch to address this issue: until the format with the `T' is recognized properly, remove the `T' from the output. The `T' is optional anyway, according to ISO 8601:
|
Jos Backus <josb> |
Thu 21 Jul 2005 04:37:48 PM UTC, comment #1: Here's a lame patch which makes this sort of work. It relies on the fact that the string "T" is lexed as a tZONE token in lookup_word(), and special-cases a date followed by a 'T' (actually, any tZONE, which is kinda bad) followed by a time in the grammar.
|
Jos Backus <josb> |
Fri 10 Dec 2004 12:38:45 PM UTC, original submission:
As shown in (1) below, date can produce valid ISO 8601 output. However, as shown in (2), it cannot parse that output. Even worse, as shown in (3), once the time zone information is removed, date interprets the "T" separator as a non-standard, undocumented and incompatible time zone specification. The "T" has to be replaced by a space before the output can be parsed acceptably, as shown in (4). So, the current behavior of date hinders the usage of ISO 8601 formatted dates in configuration and state text files.
|
Anonymous |
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 |
---|---|---|---|---|---|
2008-03-08 | meyering | Status | None | Wont Fix | |
Open/Closed | Open | Closed |
Powered by Savane 3.13-d3ae.
Corresponding source code
Thanks for the suggestion, but I don't see sufficient justification for a change, now.