From 534b2213c8089f8b458a5f1f9732a3e1c43ec405 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 1 Apr 2019 19:18:45 +0000 Subject: [PATCH] mail : manage the namespace git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5186 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- mail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail.php b/mail.php index 19115a8..06ed9a9 100644 --- a/mail.php +++ b/mail.php @@ -1049,10 +1049,10 @@ class mail $date = rtrim ($this->getDate ()); if ($date !== false) { - $dateTimestamp = DateTime::createFromFormat (DateTime::RFC2822, + $dateTimestamp = \DateTime::createFromFormat (\DateTime::RFC2822, $date); if ($dateTimestamp === false) - $dateTimestamp = DateTime::createFromFormat (DateTime::RFC822, + $dateTimestamp = \DateTime::createFromFormat (\DateTime::RFC822, $date); if ($dateTimestamp !== false) $dateTimestamp = $dateTimestamp->getTimestamp();