From d035a140b51be6f2dad8f5f760ac0e626f952be5 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 --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index a1f86b9f10..b772a7a999 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