From c07ce1a1bfbf6c1eef8000c9470356893e9f8ff7 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 Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- 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.39.5