Bug 24840: Replace DateTime->now with dt_from_string
[koha-equinox.git] / circ / overdue.pl
index a61a795..ac5fc1e 100755 (executable)
@@ -214,7 +214,7 @@ if ($noreport) {
     #  FIX 2: ensure there are indexes for columns participating in the WHERE clauses, where feasible/reasonable
 
 
-    my $today_dt = DateTime->now(time_zone => C4::Context->tz);
+    my $today_dt = dt_from_string();
     $today_dt->truncate(to => 'minute');
     my $todaysdate = $today_dt->strftime('%Y-%m-%d %H:%M');