fix: fuseau horaire des dates 'Europe/Paris'
This commit is contained in:
parent
0830f018e5
commit
eca0b48ca2
2 changed files with 2 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ const { evenement, showOverlay = true } = Astro.props;
|
|||
{showOverlay && (
|
||||
<div class="affiche-overlay">
|
||||
<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>
|
||||
)}
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ const { evenement } = Astro.props;
|
|||
</div>
|
||||
<div class="date">
|
||||
le {new Date(evenement.date).toLocaleString("fr-FR", {
|
||||
timeZone: 'Europe/Paris',
|
||||
day: 'numeric',
|
||||
month: 'long',
|
||||
year: 'numeric',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue