fix: l’heure des évènements n’apparait plus
This commit is contained in:
parent
143a75b986
commit
0830f018e5
2 changed files with 14 additions and 2 deletions
|
|
@ -14,7 +14,13 @@ const { evenement } = Astro.props;
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="date">
|
<div class="date">
|
||||||
le {new Date(evenement.date).toLocaleDateString("fr-FR")}
|
le {new Date(evenement.date).toLocaleString("fr-FR", {
|
||||||
|
day: 'numeric',
|
||||||
|
month: 'long',
|
||||||
|
year: 'numeric',
|
||||||
|
hour: '2-digit',
|
||||||
|
minute: '2-digit'
|
||||||
|
})}
|
||||||
</div>
|
</div>
|
||||||
<div class="lieu">
|
<div class="lieu">
|
||||||
à {evenement.lieu}
|
à {evenement.lieu}
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,13 @@ const Wrapper = lieuUrl ? 'a' : 'div'
|
||||||
<header class="event-header">
|
<header class="event-header">
|
||||||
<h1>{nom}</h1>
|
<h1>{nom}</h1>
|
||||||
<div class="event-meta">
|
<div class="event-meta">
|
||||||
<span class="event-date">{date ? new Date(date as string).toLocaleDateString("fr-FR") : ""}</span>
|
<span class="event-date">{date ? new Date(date as string).toLocaleString("fr-FR", {
|
||||||
|
day: 'numeric',
|
||||||
|
month: 'long',
|
||||||
|
year: 'numeric',
|
||||||
|
hour: '2-digit',
|
||||||
|
minute: '2-digit'
|
||||||
|
}) : ""}</span>
|
||||||
{lieu && (
|
{lieu && (
|
||||||
<span class="event-location">
|
<span class="event-location">
|
||||||
à <Wrapper target="_blank" href={lieuUrl}>{lieu}</Wrapper>
|
à <Wrapper target="_blank" href={lieuUrl}>{lieu}</Wrapper>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue