program > calendar : remove endtime #5

This commit is contained in:
isUnknown 2024-10-31 14:10:07 +01:00
parent 3a540d1d44
commit a6631f6ccb

View file

@ -117,18 +117,18 @@
$formatter = new IntlDateFormatter('fr_FR', IntlDateFormatter::NONE, IntlDateFormatter::NONE); $formatter = new IntlDateFormatter('fr_FR', IntlDateFormatter::NONE, IntlDateFormatter::NONE);
$formattedDate = $formatter->formatObject($date, "d MMMM"); $formattedDate = $formatter->formatObject($date, "d MMMM");
try { // try {
$endTime = strlen($session['duration']) > 0 ? getEndTime($session) : false; // $endTime = strlen($session['duration']) > 0 ? getEndTime($session) : false;
} catch (\Throwable $th) { // } catch (\Throwable $th) {
throw new Exception($session['title'] .' - ' . $th->getMessage(), 1); // throw new Exception($session['title'] .' - ' . $th->getMessage(), 1);
} // }
?> ?>
<template x-if="tab === 'Calendrier' || ('<?= $session['categories'] ?>'.length > 0 && tab.includes('<?= $session['categories'] ?>'))"> <template x-if="tab === 'Calendrier' || ('<?= $session['categories'] ?>'.length > 0 && tab.includes('<?= $session['categories'] ?>'))">
<li class="collapsable__item--padding session grid js-link" style="--color: <?= $session['color'] ?>"> <li class="collapsable__item--padding session grid js-link" style="--color: <?= $session['color'] ?>">
<div class="left-column"> <div class="left-column">
<div class="session__info"> <div class="session__info">
<p><?= $formattedDate ?></p> <p><?= $formattedDate ?></p>
<p><?= $session['time'] ?><?php e($endTime, ' - ' . $endTime) ?></p> <p><?= $session['time'] ?><?php //e($endTime, ' - ' . $endTime) ?></p>
</div> </div>
<div class="session__info"> <div class="session__info">
<p><strong><?= $session['title'] ?></strong></p> <p><strong><?= $session['title'] ?></strong></p>