fix(code) : escape DateTime classes
This commit is contained in:
parent
f181621b53
commit
c3f04d87c2
2 changed files with 4 additions and 4 deletions
|
@ -36,9 +36,9 @@ class ReservationField extends BazarField
|
|||
$producteur = baz_valeurs_fiche($entry['listefiche8producteur']);
|
||||
setlocale(LC_ALL, 'fr_FR.UTF8', 'fr_FR','fr','fr','fra','fr_FR@euro');
|
||||
setlocale(LC_TIME, "fr_FR");
|
||||
$dateTimeObj = new DateTime($entry['date_du_trajet'], new DateTimeZone('Europe/Paris'));
|
||||
$dateTimeObj = new \DateTime($entry['date_du_trajet'], new \DateTimeZone('Europe/Paris'));
|
||||
$date =
|
||||
str_replace(' à 0:00', '', IntlDateFormatter::formatObject(
|
||||
str_replace(' à 0:00', '', \IntlDateFormatter::formatObject(
|
||||
$dateTimeObj,
|
||||
'eeee d MMMM y à HH:mm',
|
||||
'fr'
|
||||
|
|
|
@ -55,9 +55,9 @@ class TrajetField extends BazarField
|
|||
$mail_receiver = $u['email'];
|
||||
setlocale(LC_ALL, 'fr_FR.UTF8', 'fr_FR','fr','fr','fra','fr_FR@euro');
|
||||
setlocale(LC_TIME, "fr_FR");
|
||||
$dateTimeObj = new DateTime($traj['date_du_trajet'], new DateTimeZone('Europe/Paris'));
|
||||
$dateTimeObj = new \DateTime($traj['date_du_trajet'], new \DateTimeZone('Europe/Paris'));
|
||||
$date =
|
||||
str_replace(' à 0:00', '', IntlDateFormatter::formatObject(
|
||||
str_replace(' à 0:00', '', \IntlDateFormatter::formatObject(
|
||||
$dateTimeObj,
|
||||
'eeee d MMMM y à HH:mm',
|
||||
'fr'
|
||||
|
|
Loading…
Reference in a new issue