diff --git a/src/components/Affiche.astro b/src/components/Affiche.astro index b4eb5c2..c6e8d3f 100644 --- a/src/components/Affiche.astro +++ b/src/components/Affiche.astro @@ -11,7 +11,7 @@ const { evenement, showOverlay = true } = Astro.props; {showOverlay && (
{evenement.nom} - {new Date(evenement.date).toLocaleDateString("fr-FR")} + {new Date(evenement.date).toLocaleDateString("fr-FR", { timeZone: 'Europe/Paris' })}
)} diff --git a/src/components/Evenement.astro b/src/components/Evenement.astro index f91c036..4ce80ff 100644 --- a/src/components/Evenement.astro +++ b/src/components/Evenement.astro @@ -15,6 +15,7 @@ const { evenement } = Astro.props;
le {new Date(evenement.date).toLocaleString("fr-FR", { + timeZone: 'Europe/Paris', day: 'numeric', month: 'long', year: 'numeric',