From 6e269676998a5346f279634e64c90d68e4c81259 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 9 Aug 2018 13:28:27 +0000 Subject: [PATCH] Bug 21188: Convert return_date to a DateTime object Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens (cherry picked from commit d035a140b51be6f2dad8f5f760ac0e626f952be5) Signed-off-by: Martin Renvoize --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 02bcfc0215..8ca94c1658 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1988,7 +1988,7 @@ sub AddReturn { if ( $issue and $issue->is_overdue ) { # fix fine days - $today = $return_date if $return_date; + $today = dt_from_string($return_date) if $return_date; $today = $dropboxdate if $dropbox; my ($debardate,$reminder) = _debar_user_on_return( $patron_unblessed, $item, dt_from_string($issue->date_due), $today ); if ($reminder){ -- 2.39.5