From 6e091d5d236226346b2d354dd43c38121352ed7b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 22 Feb 2019 11:06:46 -0300 Subject: [PATCH] Bug 18957: Record the time part of the last renewed date issues.lastreneweddate is a datetime and we could record the time part of the date. Test plan: Renew an issue note that the time part of the last renewed date is set correctly Signed-off-by: Owen Leonard Signed-off-by: Josef Moravec Signed-off-by: Nick Clemens (cherry picked from commit 4585228ea9b5cc407dcec8e4bae499d59007ea96) Signed-off-by: Martin Renvoize --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 7084da8171..f708550a2b 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2822,7 +2822,7 @@ sub AddRenewal { my $itemnumber = shift or return; my $branch = shift; my $datedue = shift; - my $lastreneweddate = shift || DateTime->now(time_zone => C4::Context->tz)->ymd(); + my $lastreneweddate = shift || DateTime->now(time_zone => C4::Context->tz); my $item = GetItem($itemnumber) or return; my $item_object = Koha::Items->find( $itemnumber ); # Should replace $item -- 2.39.5