diff --git a/include/emailinbox.php b/include/emailinbox.php index e56a59e..8f4e255 100644 --- a/include/emailinbox.php +++ b/include/emailinbox.php @@ -28,7 +28,7 @@ class Emailinbox extends Renderer { $headers = $this->mbox->getMailsInfo($mailsIds); foreach ($headers as $header) { try { - $date = \DateTime::createFromFormat('D, d M Y H:i:s O', str_replace([' (CET)', ' [ CEST]',] , $header->date)); + $date = \DateTime::createFromFormat('D, d M Y H:i:s O', str_replace([' (CET)', ' [ CEST]',], '' , $header->date)); if (!$date) { var_dump($header->date); }