diff --git a/src/module-elasticsuite-beacon/Model/BeaconBeep/Exporter/Transport.php b/src/module-elasticsuite-beacon/Model/BeaconBeep/Exporter/Transport.php index 2f60843f1..631afb99d 100644 --- a/src/module-elasticsuite-beacon/Model/BeaconBeep/Exporter/Transport.php +++ b/src/module-elasticsuite-beacon/Model/BeaconBeep/Exporter/Transport.php @@ -147,7 +147,7 @@ private function getBody($items):string $data = []; foreach ($items as $item) { - $createdAtDate = $this->dateTime->date($item[BeaconBeepInterface::CREATED_AT_DATE]); + $createdAtDate = $this->dateTime->date(new \DateTime($item[BeaconBeepInterface::CREATED_AT_DATE])); $data[] = [ BeaconBeepInterface::CLIENT_ID => $item[BeaconBeepInterface::CLIENT_ID], BeaconBeepInterface::HOST_ID => $item[BeaconBeepInterface::HOST_ID],