Recalls - cleanse the incoming due date to ISO8601
authorDan Scott <dscott@laurentian.ca>
Thu, 11 Oct 2012 22:29:28 +0000 (18:29 -0400)
committerDan Scott <dscott@laurentian.ca>
Thu, 11 Oct 2012 22:29:28 +0000 (18:29 -0400)
Gotta have that missing "T" or else you're going to suffer. And suffer.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm

index 64fc01b..5f7c0cf 100644 (file)
@@ -1627,7 +1627,7 @@ sub process_recall {
         }
 
         # Ensure that new loan period is not longer than original due date, if it is, stick with original date
-        if (DateTime->compare(DateTime::Format::ISO8601->parse_datetime($circ->due_date),DateTime::Format::ISO8601->parse_datetime($return_date)) == -1) {
+        if (DateTime->compare(DateTime::Format::ISO8601->parse_datetime(cleanse_ISO8601($circ->due_date)),DateTime::Format::ISO8601->parse_datetime($return_date)) == -1) {
            $return_date = $circ->due_date;
         };