diff --git a/t/db_dependent/Calendar.t b/t/db_dependent/Calendar.t index 5bddcbe56b..0159f1c069 100644 --- a/t/db_dependent/Calendar.t +++ b/t/db_dependent/Calendar.t @@ -302,7 +302,7 @@ subtest 'is_holiday' => sub { my $library = $builder->build_object( { class => 'Koha::Libraries' } ); - my $day = dt_from_string(); + my $day = DateTime->now(); my $dow = scalar $day->day_of_week; $dow = 0 if $dow == 7;