Skip to content

Commit 8996ae3

Browse files
devynkonHitScan
authored andcommitted
LP#1951024 Hourly Checkouts get marked as overdue, even though they are not
When an hourly checkout is made to a patron, the item is immediately marked as overdue in the items out tab. This is due to a timezone issue with date comparisons in the items_out.js file. This corrects that timezone issue using a recommendation by Jason Boyer. Release-note: Fixes erroneous overdue indication for hourly checkouts. Co-authored-by: Jason Boyer <[email protected]> Signed-off-by: Shula Link <[email protected]> Signed-off-by: Llewellyn Marshall <[email protected]> Signed-off-by: Michele Morgan <[email protected]>
1 parent de2572c commit 8996ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function($scope , $q , $routeParams , $timeout , egCore , egUser , patronSvc ,
9191

9292
$scope.colorizeItemsOutList = {
9393
apply: function(item) {
94-
var duedate = item.due_date();
94+
var duedate = new Date(item.due_date()).toISOString();
9595
if (duedate && duedate < new Date().toISOString()) {
9696
return 'overdue-row';
9797
}

0 commit comments

Comments
 (0)