diff --git a/index.php b/index.php index 2782831..2543228 100644 --- a/index.php +++ b/index.php @@ -20,7 +20,7 @@ if ($hasSupplier) { $config[$supplier] = array_merge( [ - 'title' => '%supplier% %event%', + 'title' => '%supplier% %date%', 'description' => '', 'choices' => [], 'start' => 'now 00:00:00', @@ -163,6 +163,8 @@ if (!$isConfig and $hasSupplier) { } } + $date = (new \IntlDateFormatter('fr_FR.UTF8', \IntlDateFormatter::FULL, \IntlDateFormatter::NONE, 'Europe/Paris'))->format(new \DateTime($event)); + while (preg_match('/%([^%]+)%/i', $config[$supplier]['title'], $match)) $config[$supplier]['title'] = str_replace( $match[0], @@ -189,7 +191,7 @@ if (!$isConfig and $hasSupplier) { - + @@ -200,6 +202,15 @@ if (!$isConfig and $hasSupplier) { Retour + + + + + + + + + Configuration @@ -297,14 +308,14 @@ if (!$isConfig and $hasSupplier) { Nom - + Choix - + @@ -387,11 +398,13 @@ if (!$isConfig and $hasSupplier) { + +