fix date trajet
This commit is contained in:
parent
aabb13aa2c
commit
0e2ac67e95
1 changed files with 9 additions and 1 deletions
|
@ -26,7 +26,15 @@ class TrajetField extends BazarField
|
||||||
if (!empty($trajet)) {
|
if (!empty($trajet)) {
|
||||||
$traj = baz_valeurs_fiche($trajet);
|
$traj = baz_valeurs_fiche($trajet);
|
||||||
setlocale(LC_ALL, 'fr_FR.UTF8', 'fr_FR', 'fr', 'fr', 'fra', 'fr_FR@euro');
|
setlocale(LC_ALL, 'fr_FR.UTF8', 'fr_FR', 'fr', 'fr', 'fra', 'fr_FR@euro');
|
||||||
$date = str_replace(' à 0:00', '', strftime("%A %d %B %Y à %k:%M", strtotime($traj['date_du_trajet'])));
|
setlocale(LC_TIME, "fr_FR");
|
||||||
|
$dateTimeObj = new \DateTime($traj['date_du_trajet'], new \DateTimeZone('Europe/Paris'));
|
||||||
|
$date =
|
||||||
|
str_replace(' à 0:00', '', \IntlDateFormatter::formatObject(
|
||||||
|
$dateTimeObj,
|
||||||
|
'eeee d MMMM y à HH:mm',
|
||||||
|
'fr'
|
||||||
|
));
|
||||||
|
|
||||||
$producteur = $_GET['producteur'] ?? $traj['listefiche8producteur'];
|
$producteur = $_GET['producteur'] ?? $traj['listefiche8producteur'];
|
||||||
$prod = baz_valeurs_fiche($producteur);
|
$prod = baz_valeurs_fiche($producteur);
|
||||||
// Do the page change in any case (useful for attach or grid)
|
// Do the page change in any case (useful for attach or grid)
|
||||||
|
|
Loading…
Add table
Reference in a new issue