From efc2f5e8bb9b6064a491d083fee41062f98f310e Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Thu, 11 Oct 2012 18:29:28 -0400 Subject: [PATCH] Recalls - cleanse the incoming due date to ISO8601 Gotta have that missing "T" or else you're going to suffer. And suffer. Signed-off-by: Dan Scott --- .../src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm index 64fc01ba3b..5f7c0cf81d 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm @@ -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; }; -- 2.11.0