From cdf3a64483bb62babed0350c5f41a00ec9785657 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Sat, 28 Mar 2026 18:34:42 +0000 Subject: [PATCH] sdr --- Framework/Functions.php | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) 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)