summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-05-11 05:30:11 +0200
committerlpsolit%gmail.com <>2005-05-11 05:30:11 +0200
commita32c764ba4f84270e5730e643d099b46313e071a (patch)
tree69f13d696a293e47c41f2ab1af483628e9f87752 /t
parentd5c3b178067c1d9c0c7f5cf7756c1969443410fd (diff)
downloadbugzilla-a32c764ba4f84270e5730e643d099b46313e071a.tar.gz
bugzilla-a32c764ba4f84270e5730e643d099b46313e071a.tar.xz
Bug 287487: User with no privs can not add comments to bugs that have a deadline field set - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 't')
-rw-r--r--t/007util.t9
1 files changed, 4 insertions, 5 deletions
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)');