From 0981d4e6bce351d711a6f8082b53427a6fc519dd Mon Sep 17 00:00:00 2001 From: Andrew Fuerste-Henry Date: Tue, 19 Jan 2021 20:28:40 +0000 Subject: [PATCH] Bug 27442: Assume 23:59:59 for date due end date To test: 1 - have a checkout due yesterday at 23:59:59 2 - go to overdue.pl, search with yesterday's date in the From and To dates 3 - confirm your checkout is not listed 4 - change your To date to today 5 - confirm your check is listed 6 - apply patch, restart service 7 - repeat step 2 8 - your checkout is there! Signed-off-by: Katrin Fischer --- circ/overdue.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/overdue.pl b/circ/overdue.pl index 1ce791fe24..39d8a1da29 100755 --- a/circ/overdue.pl +++ b/circ/overdue.pl @@ -47,7 +47,7 @@ if ( $dateduefrom ) { $dateduefrom = dt_from_string( $dateduefrom ); } if ( $datedueto ) { - $datedueto = dt_from_string( $datedueto )->set_hour(23)->set_minute(59); + $datedueto = dt_from_string( $datedueto )->set_hour(23)->set_minute(59)->set_second(59); } my $filters = { -- 2.11.0