From aabc0e3967f88df27ad605b636fc53e003cc54ff Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 7 Jul 2020 12:05:42 +0000 Subject: [PATCH] Bug 25850: (QA follow-up) use dt_from_string Signed-off-by: Nick Clemens --- t/db_dependent/Calendar.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Calendar.t b/t/db_dependent/Calendar.t index 99db1b1ea3..0900b5719d 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 = DateTime->now(); + my $day = dt_from_string(); my $dow = scalar $day->day_of_week; $dow = 0 if $dow == 7; @@ -344,7 +344,7 @@ subtest 'get_push_amt' => sub { my $library = $builder->build_object( { class => 'Koha::Libraries' } ); - my $day = DateTime->now(); + my $day = dt_from_string(); my $dow = scalar $day->day_of_week; $dow = 0 if $dow == 7; -- 2.11.0