From a5bdce50fadcf9bb5f8c224e89beb33b69b7380c Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Thu, 23 Aug 2012 14:04:31 +0100 Subject: [PATCH] Bug 8675 Add hours and mins to renewal due date If user supplies renewal with a new due date it should add a time using the same logic as dateduespec in circulation.pl rather than defaulting to 00:00 Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain Conflicts: reserve/renewscript.pl --- reserve/renewscript.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reserve/renewscript.pl b/reserve/renewscript.pl index 30d8256c8e..0c6dab4758 100755 --- a/reserve/renewscript.pl +++ b/reserve/renewscript.pl @@ -67,8 +67,10 @@ if ($input->param('return_all')) { my $branch=$input->param('branch'); my $datedue; -if ($input->param('newduedate')){ - $datedue = dt_from_string($input->param('newduedate')); +if ( $input->param('newduedate') ) { + $datedue = dt_from_string( $input->param('newduedate') ); + $datedue->set_hour(23); + $datedue->set_minute(59); } # warn "barcodes : @barcodes"; -- 2.39.5