From 3269f491fc2d2789b772e5d0b1d27eb45c5dd842 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 Content-Type: text/plain; charset=utf-8 Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Marcel de Rooy --- 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.20.1