From e87ceb59821cd0daaa951e0ed9715885bdd99088 Mon Sep 17 00:00:00 2001 From: Assaf Gordon Date: Wed, 16 Mar 2016 23:23:19 -0400 Subject: [PATCH] tests: test date %Z behaviour * tests/misc/date.pl: ensure %Z format prints correct values. --- tests/misc/date.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/misc/date.pl b/tests/misc/date.pl index 2d19254..f6e0e28 100755 --- a/tests/misc/date.pl +++ b/tests/misc/date.pl @@ -218,6 +218,10 @@ my @Tests = # Don't recognize %:z with a field width between the ':' and the 'z'. ['tz-5wf', '+%:8z', {OUT=>"%:8z"}, {ENV=>'TZ=XXX0:01'}], + # Test alphabetic timezone abbrv + ['tz-6', '+%Z', {OUT=>"UTC"}], + ['tz-7', '+%Z', {OUT=>"JST"}, {ENV=>'TZ=Asia/Tokyo'}], + ['ns-relative', '--iso=ns', "-d'1970-01-01 00:00:00.1234567 UTC +961062237.987654321 sec'", -- 2.0.4