From 957ac5610da3b819f5c21f493bddb4eb3b4c2399 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 14 Jul 2022 15:24:19 +0200 Subject: [PATCH] Bug 30718: Pass DT to filter_by_lates --- acqui/lateorders.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acqui/lateorders.pl b/acqui/lateorders.pl index 639f4f4933..7ce5683ae5 100755 --- a/acqui/lateorders.pl +++ b/acqui/lateorders.pl @@ -110,12 +110,12 @@ my @lateorders = Koha::Acquisition::Orders->filter_by_lates( delay => $delay, ( $estimateddeliverydatefrom - ? ( estimated_from => $estimateddeliverydatefrom ) + ? ( estimated_from => dt_from_string($estimateddeliverydatefrom, 'iso') ) : () ), ( $estimateddeliverydateto - ? ( estimated_to => $estimateddeliverydateto ) + ? ( estimated_to => dt_from_string($estimateddeliverydateto, 'iso') ) : () ) }, -- 2.37.1