@@ -, +, @@ negative durations, the default is "limit". This should match how most people prove t/db_dependent/Koha/Patrons.t --- t/db_dependent/Koha/Patrons.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/t/db_dependent/Koha/Patrons.t +++ a/t/db_dependent/Koha/Patrons.t @@ -192,7 +192,7 @@ subtest 'is_expired' => sub { subtest 'renew_account' => sub { plan tests => 10; - my $a_month_ago = dt_from_string->add( months => -1 )->truncate( to => 'day' ); + my $a_month_ago = dt_from_string->subtract( months => 1, end_of_month => 'wrap' )->truncate( to => 'day' ); my $a_year_later = dt_from_string->add( months => 12 )->truncate( to => 'day' ); my $a_year_later_minus_a_month = dt_from_string->add( months => 11 )->truncate( to => 'day' ); my $a_month_later = dt_from_string->add( months => 1 )->truncate( to => 'day' ); --