canceled holds, when they exist, happened in the past, not the future
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 27 Oct 2009 12:26:04 +0000 (12:26 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 27 Oct 2009 12:26:04 +0000 (12:26 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14626 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm

index 2152b5c..5d06083 100644 (file)
@@ -367,7 +367,7 @@ sub retrieve_holds {
     } elsif($cancel_age) {
 
         # find all of the canceled holds that were canceled within the configured time frame
-        my $date = DateTime->now->add(seconds => OpenSRF::Utils::interval_to_seconds($cancel_age));
+        my $date = DateTime->now->subtract(seconds => OpenSRF::Utils::interval_to_seconds($cancel_age));
         $date = $U->epoch2ISO8601($date->epoch);
 
         my $canceled = $e->search_action_hold_request([