diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-10-23 03:19:18 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-10-27 17:25:12 +0000 |
commit | 17bbf6ce44eb543a95695fa9d2cbd70fb52c6f42 (patch) | |
tree | 9efdf27d46b80b9a0f8e101ac14803dca37948cd /tests/misc | |
parent | badff99041222b89df690c48980a00258fc01e6d (diff) | |
download | coreutils-17bbf6ce44eb543a95695fa9d2cbd70fb52c6f42.tar.xz |
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
Diffstat (limited to 'tests/misc')
-rwxr-xr-x | tests/misc/date.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/misc/date.pl b/tests/misc/date.pl index 6a7c6f88b..ad07fa485 100755 --- a/tests/misc/date.pl +++ b/tests/misc/date.pl @@ -203,17 +203,17 @@ my @Tests = ['moname-d-y-r', '--rfc-3339=date -d May-23-2003', {OUT=>"2003-05-23"}], ['epoch', '--iso=sec -d @31536000', - {OUT=>"1971-01-01T00:00:00+0000"}], + {OUT=>"1971-01-01T00:00:00+00:00"}], ['epoch-r', '--rfc-3339=sec -d @31536000', {OUT=>"1971-01-01 00:00:00+00:00"}], ['ns-10', '--iso=ns', '-d "1969-12-31 13:00:00.00000001-1100"', - {OUT=>"1970-01-01T00:00:00,000000010+0000"}], + {OUT=>"1970-01-01T00:00:00,000000010+00:00"}], ['ns-10-r', '--rfc-3339=ns', '-d "1969-12-31 13:00:00.00000001-1100"', {OUT=>"1970-01-01 00:00:00.000000010+00:00"}], ['ns-max32', '--iso=ns', '-d "2038-01-19 03:14:07.999999999"', - {OUT=>"2038-01-19T03:14:07,999999999+0000"}], + {OUT=>"2038-01-19T03:14:07,999999999+00:00"}], ['ns-max32-r', '--rfc-3339=ns', '-d "2038-01-19 03:14:07.999999999"', {OUT=>"2038-01-19 03:14:07.999999999+00:00"}], @@ -235,7 +235,7 @@ my @Tests = ['ns-relative', '--iso=ns', "-d'1970-01-01 00:00:00.1234567 UTC +961062237.987654321 sec'", - {OUT=>"2000-06-15T09:43:58,111111021+0000"}], + {OUT=>"2000-06-15T09:43:58,111111021+00:00"}], ['ns-relativer', '--rfc-3339=ns', "-d'1970-01-01 00:00:00.1234567 UTC +961062237.987654321 sec'", {OUT=>"2000-06-15 09:43:58.111111021+00:00"}], |