Add display_errors + fix function that converts date time

pull/2487/head
jmontoyaa 7 years ago
parent 0cea382ae9
commit 132d6ca181
  1. 7
      main/cron/import_csv.php

@ -25,6 +25,7 @@ require_once __DIR__.'/../inc/global.inc.php';
ini_set('memory_limit', -1);
ini_set('max_execution_time', 0);
ini_set('log_errors', '1');
ini_set('display_errors', '1');
/**
* Class ImportCsv
@ -2282,7 +2283,6 @@ class ImportCsv
->setUser($userInfo)
;
$em->persist($post);
$em->flush();
$this->logger->addInfo("Post id saved #".$post->getId());
@ -2310,8 +2310,11 @@ class ImportCsv
}
$date = DateTime::createFromFormat('j/m/Y', $string);
if ($date) {
return $date;
}
return $date;
return null;
}
/**

Loading…
Cancel
Save