date: use extended format timezone for --iso-8601
commit17bbf6ce44eb543a95695fa9d2cbd70fb52c6f42
authorPádraig Brady <P@draigBrady.com>
Fri, 23 Oct 2015 02:19:18 +0000 (23 03:19 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 27 Oct 2015 17:25:12 +0000 (27 17:25 +0000)
tree9efdf27d46b80b9a0f8e101ac14803dca37948cd
parentbadff99041222b89df690c48980a00258fc01e6d
date: use extended format timezone for --iso-8601

* src/date.c (main): Use %:z rather than %z with --iso-8601
as the standard states to consistently use extended format.
Note either format can be parsed by date.
* tests/misc/date.pl: Adjust accordingly.
* doc/coreutils.texi (du invocation): Clarify that "iso"
time styles are only similar to ISO-8601.
(ls invocation): Likewise.
(date invocation): Adjust the comment stating
that only --rfc-3339 output can be parsed by date(1).
* NEWS: Mention the change in behavior.
Reported at http://bugs.debian.org/799479
NEWS
doc/coreutils.texi
src/date.c
tests/misc/date.pl