Gotta have that missing "T" or else you're going to suffer. And suffer.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
}
# 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;
};