From 7955f38d84830409e93e200048559bbc5ce4a7ae Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Ond=C5=99ej=20Va=C5=A1=C3=ADk?= Date: Fri, 27 Jun 2008 17:59:15 +0200 Subject: [PATCH] tests/misc/date: test if TZ is not ignored for relative day offset NEWS: mention changes in date behaviour Signed-off-by: Ondřej Vašík --- NEWS | 6 ++++++ tests/misc/date | 2 ++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/NEWS b/NEWS index c38088d..b8e6f07 100644 --- a/NEWS +++ b/NEWS @@ -31,6 +31,9 @@ GNU coreutils NEWS -*- outline -*- chcon --verbose now prints a newline after each message + date will no longer ignore specified timezone when relative day,month + or year offset is specified. + od no longer suffers from platform bugs in printf(3). This is probably most noticeable when using 'od -tfL' to print long doubles. @@ -51,6 +54,9 @@ GNU coreutils NEWS -*- outline -*- stat's --context (-Z) option has always been a no-op. Now it evokes a warning that it is obsolete and will be removed. + date will now consider invalid timezone in format as invalid + date(UTC-12 to UTC+14 allowed) + * Noteworthy changes in release 6.12 (2008-05-31) [stable] diff --git a/tests/misc/date b/tests/misc/date index fb700b5..96c7fa6 100755 --- a/tests/misc/date +++ b/tests/misc/date @@ -118,6 +118,8 @@ my @Tests = ['rel-1day', "-d '20050101 1 day' +%F", {OUT=>"2005-01-02"}], # ...but up to coreutils-6.9, this was rejected due to the "+". ['rel-plus1', "-d '20050101 +1 day' +%F", {OUT=>"2005-01-02"}], + # up to 6.12, specified TZ was ignored with relative day offset + ['rel-plusTZ6d', "-d '20070101 12:40 UTC+4 +6 day' $fmt", {OUT=>"2007-01-07 08:40:00"}], ['next-s', "-d '$d1 next second' '+%Y-%m-%d %T'", {OUT=>"$d0 $ts"}], ['next-m', "-d '$d1 next minute' '+%Y-%m-%d %T'", {OUT=>"$d0 $tm"}], -- 1.5.2.2