form : add the \DateTime to be namespace compliant
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5846 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2
form.php
2
form.php
@@ -584,7 +584,7 @@ class form
|
|||||||
public function convertDate ($inputDate, $inputFormat, $outputFormat)
|
public function convertDate ($inputDate, $inputFormat, $outputFormat)
|
||||||
// {{{
|
// {{{
|
||||||
{
|
{
|
||||||
$date = DateTime::CreateFromFormat ($inputFormat, $inputDate);
|
$date = \DateTime::CreateFromFormat ($inputFormat, $inputDate);
|
||||||
if ($date === false)
|
if ($date === false)
|
||||||
return $inputDate;
|
return $inputDate;
|
||||||
$errors = $date->getLastErrors();
|
$errors = $date->getLastErrors();
|
||||||
|
|||||||
Reference in New Issue
Block a user