|
|
|
@ -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; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|