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 <arthur.bousquet@inlibro.com>
Signed-off-by: Bin Wen <bin.wen@inlibro.com>

https://bugs.koha-community.org/show_bug.cgi?id=22472

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Arthur Suzuki 2019-04-19 11:48:31 +02:00 committed by Nick Clemens
parent 3b037a7736
commit 5cc8fb5e07

View file

@ -637,7 +637,7 @@ sub RenewLoan {
# Hashref building # Hashref building
my $out; my $out;
$out->{'renewals'} = $issue->renewals; $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->{'success'} = $renewal[0];
$out->{'error'} = $renewal[1]; $out->{'error'} = $renewal[1];