From 4585228ea9b5cc407dcec8e4bae499d59007ea96 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 --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index fa082104a1..3c1d6761e2 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2816,7 +2816,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