Bug 8769: (follow-up) undo change to value of $today
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 5 May 2014 11:54:56 +0000 (07:54 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 5 May 2014 15:05:51 +0000 (15:05 +0000)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Circulation.pm

index f89bb9a..639956b 100644 (file)
@@ -1780,7 +1780,7 @@ sub AddReturn {
     }
 
     # case of a return of document (deal with issues and holdingbranch)
-    my $today = dt_from_string( $return_date, 'iso' );
+    my $today = DateTime->now( time_zone => C4::Context->tz() );
 
     if ($doreturn) {
         my $datedue = $issue->{date_due};