From dbfbb93424adc99b353e1f52b4315005e46715f1 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 18 Oct 2000 19:03:30 +0000 Subject: Undo the effect of the 1997-07-12 change to date.c; it broke "date -u MMDDhhmm" and it wasn't documented. This reverts to the behavior of the 1996-01-03 patch. (utc-0, utc-1, relative-2): Adjust to above change. --- tests/date/Test.pm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'tests/date') diff --git a/tests/date/Test.pm b/tests/date/Test.pm index e681d3d17..c0545693a 100644 --- a/tests/date/Test.pm +++ b/tests/date/Test.pm @@ -95,15 +95,12 @@ sub test_vector ['next-mo', "-d '$d1 next month' '+%Y-%m-%d %T'", {}, "$dm $t0", 0], ['next-y', "-d '$d1 next year' '+%Y-%m-%d %T'", {}, "$dy $t0", 0], - # These utc-* tests failed for sh-utils-1.16. - ['utc-0', "-u -d '08/01/97 6:00' '+%D,%H:%M'", {}, "08/01/97,10:00", 0], - # Same as above, but don't rely on TZ in environment. + ['utc-0', "-u -d '08/01/97 6:00' '+%D,%H:%M'", {}, "08/01/97,06:00", 0], ['utc-0a', "-u -d '08/01/97 6:00 UTC +4 hours' '+%D,%H:%M'", {}, "08/01/97,10:00", 0], # Make sure --file=FILE works with -u. ['utc-1', "-u --file=- '+%Y-%m-%d %T'", "$d0 $t0\n$d0 $t0\n", - "$d0 $th\n$d0 $th", 0], - # Same as above, but don't rely on TZ in environment. + "$d0 $t0\n$d0 $t0", 0], ['utc-1a', "-u --file=- '+%Y-%m-%d %T'", "$d0 $t0 UTC +1 hour\n$d0 $t0 UTC +1 hour\n", "$d0 $th\n$d0 $th", 0], @@ -138,9 +135,8 @@ sub test_vector {}, "2000-06-15 09:43:57", 0], # Relative seconds, no time. - # This test is fragile! It works only if TZ is set to UTC+1 (as below). ['relative-2', "--utc -d '1970-01-01 UTC +961062237 sec' $fmt", {}, - "2000-06-15 10:43:57", 0], + "2000-06-15 09:43:57", 0], # FIXME: add a lot more... ); -- cgit v1.2.3-70-g09d2