From e6522ea63c6258b162c23731d2d3ff3950808152 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 26 Jun 2020 16:24:00 +0100 Subject: [PATCH] Bug 25850: Add tests for weekday holidays Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize (cherry picked from commit 4ed4e468d2ceaf4502b817feb791656d5a159fa5) Signed-off-by: Lucas Gass --- t/db_dependent/Calendar.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5