Bug 8675 Add hours and mins to renewal due date
authorColin Campbell <colin.campbell@ptfs-europe.com>
Thu, 23 Aug 2012 13:04:31 +0000 (14:04 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 4 Sep 2012 16:22:32 +0000 (18:22 +0200)
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 <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
reserve/renewscript.pl

index d13ced3..dbdced9 100755 (executable)
@@ -68,6 +68,8 @@ my $branch = $input->param('branch');
 my $datedue;
 if ( $input->param('newduedate') ) {
     $datedue = dt_from_string( $input->param('newduedate') );
+    $datedue->set_hour(23);
+    $datedue->set_minute(59);
 }
 
 # warn "barcodes : @barcodes";