From: Mike Rylander Date: Mon, 19 Jul 2021 16:26:04 +0000 (-0400) Subject: Correct comparison of hard stalling interval to "now" X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=65953bf9b413f4adc3bb5f817227a4ae7006f976;p=working%2FEvergreen.git Correct comparison of hard stalling interval to "now" Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Utils/HoldTargeter.pm b/Open-ILS/src/perlmods/lib/OpenILS/Utils/HoldTargeter.pm index e5c619829e..6180ae7264 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Utils/HoldTargeter.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Utils/HoldTargeter.pm @@ -313,7 +313,7 @@ sub inside_hard_stall_interval { seconds => OpenILS::Utils::DateTime->interval_to_seconds($hard_stall_interval) ); - if (DateTime->compare($hold_request_time, $hard_stall_time) < 0) { + if (DateTime->compare($hard_stall_time, DateTime->now(time_zone => 'local')) > 0) { $self->{inside_hard_stall_interval} = 1 } else { $self->{inside_hard_stall_interval} = 0