fix: fuseau horaire des dates 'Europe/Paris'

This commit is contained in:
Jalil Arfaoui 2025-09-19 11:14:53 +02:00
parent 0830f018e5
commit eca0b48ca2
2 changed files with 2 additions and 1 deletions

View file

@ -11,7 +11,7 @@ const { evenement, showOverlay = true } = Astro.props;
{showOverlay && ( {showOverlay && (
<div class="affiche-overlay"> <div class="affiche-overlay">
<span class="affiche-nom">{evenement.nom}</span> <span class="affiche-nom">{evenement.nom}</span>
<span class="affiche-date">{new Date(evenement.date).toLocaleDateString("fr-FR")}</span> <span class="affiche-date">{new Date(evenement.date).toLocaleDateString("fr-FR", { timeZone: 'Europe/Paris' })}</span>
</div> </div>
)} )}
</a> </a>

View file

@ -15,6 +15,7 @@ const { evenement } = Astro.props;
</div> </div>
<div class="date"> <div class="date">
le {new Date(evenement.date).toLocaleString("fr-FR", { le {new Date(evenement.date).toLocaleString("fr-FR", {
timeZone: 'Europe/Paris',
day: 'numeric', day: 'numeric',
month: 'long', month: 'long',
year: 'numeric', year: 'numeric',