From: Paul Eggert Date: Sat, 5 Feb 2022 21:46:44 +0000 (-0800) Subject: date: test against bug#50115 X-Git-Tag: v9.1~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a3dedfef9479c53cd9016139ce00d58a6006ba2;p=thirdparty%2Fcoreutils.git date: test against bug#50115 * tests/misc/date.pl: Add test. --- diff --git a/tests/misc/date.pl b/tests/misc/date.pl index e9de8e453b..ef7080e334 100755 --- a/tests/misc/date.pl +++ b/tests/misc/date.pl @@ -301,6 +301,9 @@ my @Tests = # https://bugs.gnu.org/34608 ['date-century-plus', '-d @0 +.%+4C.', {OUT => '.+019.'}], + # https://bugs.gnu.org/50115 + ['date-epoch-minus-1', '-u -d "1970-12-31T23:59:59+00:00 - 1 year"', + {OUT => 'Wed Dec 31 23:59:59 UTC 1969'}], # Military time zones, new behavior (since 8.32) # https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html