Commit 15d33dba authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

En mode calendaire, plus d'affichage d'heures à 00:00

parent 7d6f89e0
Loading
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -274,7 +274,13 @@ class ListeCalendaireViewHelper extends AbstractHtmlElement
    {
        if (!$horaire instanceof \DateTime) return null;

        return $horaire->format(Constants::DATETIME_FORMAT);
        $horaire = $horaire->format(Constants::DATETIME_FORMAT);

        if (str_ends_with($horaire, '00:00')){
            $horaire = substr($horaire, 0,-6);
        }

        return $horaire;
    }