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:
parent
3b037a7736
commit
5cc8fb5e07
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue