diff --git a/Framework/Functions.php b/Framework/Functions.php index d60d0e4..4c8df70 100755 --- a/Framework/Functions.php +++ b/Framework/Functions.php @@ -166,17 +166,15 @@ function dateEng($d) function dateLang($d, $lang=null) { - $date = DateTime::createFromFormat('d/m/Y', $d); - - if (!$date) { - return "Format de date invalide"; - } - - if (isset($lang) && $lang=="en_US") { - return $date->format('m/d/Y'); // format US - } else { - return $date->format('d/m/Y'); // format FR - } + if (isset($lang) && $lang=="en_US") + { + return dateEng($d); + + } + else + { + return dateFr($d); + } } function dateheureFr($d)