From 51be4ab38710f289c145bdff608ba6c59060757e Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Ond=C5=99ej=20Va=C5=A1=C3=ADk?= Date: Mon, 30 Jun 2008 17:42:38 +0200 Subject: [PATCH] *tests/misc/date: test if signed relative time offset is handled correctly before TZ is specified. *NEWS: mention changes in date behaviour Signed-off-by: Ondřej Vašík --- NEWS | 8 +++++++- tests/misc/date | 2 ++ 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/NEWS b/NEWS index b8e6f07..8e7fd45 100644 --- a/NEWS +++ b/NEWS @@ -31,9 +31,15 @@ GNU coreutils NEWS -*- outline -*- chcon --verbose now prints a newline after each message - date will no longer ignore specified timezone when relative day,month + date will no longer ignore specified timezone when relative day, month or year offset is specified. + date will now allow usage of signed relative time offset even if timezone + is not specified + + date will no longer allow format with countable/ordinal dayshift + e.g. "40 yesterday" or "next yesterday" + od no longer suffers from platform bugs in printf(3). This is probably most noticeable when using 'od -tfL' to print long doubles. diff --git a/tests/misc/date b/tests/misc/date index 96c7fa6..d79f79b 100755 --- a/tests/misc/date +++ b/tests/misc/date @@ -120,6 +120,8 @@ my @Tests = ['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"}], + # up to 6.12, signed relative time offset was not allowed before TZ + ['rel-plus60m', "-d '11:40 + 60 minute' +%T", {OUT=>"12: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