From 1bc86d192d419c7256fd6737217c7dfb99c96c39 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 10 Jan 2020 14:11:15 +0000 Subject: [PATCH] form : add the \DateTime to be namespace compliant git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5846 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/form.php b/form.php index b5419d5..919d446 100644 --- a/form.php +++ b/form.php @@ -584,7 +584,7 @@ class form public function convertDate ($inputDate, $inputFormat, $outputFormat) // {{{ { - $date = DateTime::CreateFromFormat ($inputFormat, $inputDate); + $date = \DateTime::CreateFromFormat ($inputFormat, $inputDate); if ($date === false) return $inputDate; $errors = $date->getLastErrors();