From a32c764ba4f84270e5730e643d099b46313e071a Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 11 May 2005 03:30:11 +0000 Subject: Bug 287487: User with no privs can not add comments to bugs that have a deadline field set - Patch by Frédéric Buclin r=mkanat a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- t/007util.t | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 't') diff --git a/t/007util.t b/t/007util.t index 48c925aa3..02069dcc1 100644 --- a/t/007util.t +++ b/t/007util.t @@ -28,8 +28,8 @@ use lib 't'; use Support::Files; BEGIN { - use Test::More tests => 13; - use_ok(Bugzilla::Util); + use Test::More tests => 14; + use_ok(Bugzilla::Util); } # We need to override the the Param() function so we can get an expected @@ -68,8 +68,7 @@ is(min(@list),2,'min()'); is(trim(" fg<*\$%>+=~~ "),'fg<*$%>+=~~','trim()'); #format_time(); -is(format_time("20021123140436"),'2002-11-23 14:04 TEST','format_time("20021123140436")'); is(format_time("2002.11.24 00:05"),'2002-11-24 00:05 TEST','format_time("2002.11.24 00:05")'); is(format_time("2002.11.24 00:05:56"),'2002-11-24 00:05:56 TEST','format_time("2002.11.24 00:05:56")'); - - +is(format_time("2002.11.24 00:05:56", "%Y-%m-%d %R"), '2002-11-24 00:05', 'format_time("2002.11.24 00:05:56", "%Y-%m-%d %R") (with no timezone)'); +is(format_time("2002.11.24 00:05:56", "%Y-%m-%d %R %Z"), '2002-11-24 00:05 TEST', 'format_time("2002.11.24 00:05:56", "%Y-%m-%d %R %Z") (with timezone)'); -- cgit v1.2.3-24-g4f1b