Bug 19036: (QA follow-up) Use Koha::DateUtils
[koha-equinox.git] / t / db_dependent / Koha / Account.t
index c6341c0..4a8ef7c 100755 (executable)
@@ -1065,7 +1065,7 @@ subtest 'Koha::Account::pay() generates credit number' => sub {
     my $context = Test::MockModule->new('C4::Context');
     $context->mock( 'userenv', { branch => $library->id } );
 
-    my $now = DateTime->now;
+    my $now = dt_from_string;
     my $year = $now->year;
     my $month = $now->month;
     my ($accountlines_id, $accountline);