a
This commit is contained in:
parent
e94af18fdb
commit
955a2cc1a6
|
|
@ -54,10 +54,17 @@ class Requete
|
|||
$lang = $_SESSION['lang'] ?? 'fr';
|
||||
|
||||
// Couvre "en", "en_US", "en_GB", etc.
|
||||
/*
|
||||
$format = str_starts_with(strtolower($lang), 'en')
|
||||
? 'm/d/Y' // Anglais : MM/JJ/AAAA
|
||||
: 'j/m/Y'; // Français : JJ/MM/AAAA
|
||||
|
||||
*/
|
||||
|
||||
if($lang=="en_US"){
|
||||
$format = 'm/d/Y';
|
||||
}else{
|
||||
$format = 'j/m/Y';
|
||||
}
|
||||
$d = DateTime::createFromFormat($format, $this->parametres[$date]);
|
||||
|
||||
if ($d === false) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user