From e9d23e2186fb251a7e596a997c4c1878ec124df9 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 --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index fa08210..3c1d676 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.1.4