summaryrefslogtreecommitdiff
path: root/rt/t/api/date.t
diff options
context:
space:
mode:
Diffstat (limited to 'rt/t/api/date.t')
-rw-r--r--rt/t/api/date.t10
1 files changed, 9 insertions, 1 deletions
diff --git a/rt/t/api/date.t b/rt/t/api/date.t
index cc1c694cc..22c6f1b58 100644
--- a/rt/t/api/date.t
+++ b/rt/t/api/date.t
@@ -4,7 +4,7 @@ use DateTime;
use warnings;
use strict;
-use RT::Test tests => 173;
+use RT::Test tests => 175;
use RT::User;
use Test::Warn;
@@ -440,6 +440,14 @@ my $year = (localtime(time))[5] + 1900;
$date->Unix(0);
$date->AddDays(31);
is($date->ISO, '1970-02-01 00:00:00', "added one month");
+
+ $date->Unix(0);
+ $date->AddDays(0);
+ is($date->ISO, '1970-01-01 00:00:00', "added no days");
+
+ $date->Unix(0);
+ $date->AddDays();
+ is($date->ISO, '1970-01-02 00:00:00', "added one day with no argument");
}
{