From eca0b48ca257b660062bce80d17c04e227a62054 Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Fri, 19 Sep 2025 11:14:53 +0200 Subject: [PATCH] fix: fuseau horaire des dates 'Europe/Paris' --- src/components/Affiche.astro | 2 +- src/components/Evenement.astro | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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',