From 5cc8fb5e07eab457f998c42e1b7cd22c387e647b Mon Sep 17 00:00:00 2001 From: Arthur Suzuki Date: Fri, 19 Apr 2019 11:48:31 +0200 Subject: [PATCH] Bug 22742: ILS-DI - Fix datetime format returned by RenewLoan Test plan : Call RenewLoan a few times and check the date returned is correct (minute wise). Signed-off-by: Arthur Bousquet Signed-off-by: Bin Wen https://bugs.koha-community.org/show_bug.cgi?id=22472 Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- C4/ILSDI/Services.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index f6591ebe3b..f38365c732 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -637,7 +637,7 @@ sub RenewLoan { # Hashref building my $out; $out->{'renewals'} = $issue->renewals; - $out->{date_due} = dt_from_string($issue->date_due)->strftime('%Y-%m-%d %H:%S'); + $out->{date_due} = dt_from_string($issue->date_due)->strftime('%Y-%m-%d %H:%M'); $out->{'success'} = $renewal[0]; $out->{'error'} = $renewal[1]; -- 2.39.5