From 81d1871d4037bb666a132aea053ced2adda126c3 Mon Sep 17 00:00:00 2001 From: Manus Date: Wed, 15 Jul 2026 10:30:59 +0000 Subject: [PATCH] =?UTF-8?q?Checkpoint:=20Fix:=20ajout=20timeZone=20Europe/?= =?UTF-8?q?Paris=20dans=20tous=20les=20toLocaleDateString=20avec=20heure?= =?UTF-8?q?=20dans=20emailService.ts=20et=20exportService.ts=20=E2=80=94?= =?UTF-8?q?=20corrige=20l'affichage=207h00=20au=20lieu=20de=209h00=20dans?= =?UTF-8?q?=20les=20mails=20de=20rappel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/emailService.ts | 18 ++++++++++++------ server/exportService.ts | 9 ++++++--- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/server/emailService.ts b/server/emailService.ts index 5d20bf5..b311a5e 100644 --- a/server/emailService.ts +++ b/server/emailService.ts @@ -66,7 +66,8 @@ export async function sendInscriptionConfirmation(params: { month: 'long', day: 'numeric', hour: '2-digit', - minute: '2-digit' + minute: '2-digit', + timeZone: 'Europe/Paris' })}
au ${date.dateFin.toLocaleDateString('fr-FR', { weekday: 'long', @@ -74,7 +75,8 @@ export async function sendInscriptionConfirmation(params: { month: 'long', day: 'numeric', hour: '2-digit', - minute: '2-digit' + minute: '2-digit', + timeZone: 'Europe/Paris' })} `)).join(''); @@ -268,7 +270,8 @@ export async function sendRappelEmail(params: { month: 'long', day: 'numeric', hour: '2-digit', - minute: '2-digit' + minute: '2-digit', + timeZone: 'Europe/Paris' })} `).join(''); @@ -409,7 +412,8 @@ export async function sendRappelJ7Email(params: { month: 'long', day: 'numeric', hour: '2-digit', - minute: '2-digit' + minute: '2-digit', + timeZone: 'Europe/Paris' })} `).join(''); @@ -518,10 +522,12 @@ export async function sendRappelJ1Email(params: { month: 'long', day: 'numeric', hour: '2-digit', - minute: '2-digit' + minute: '2-digit', + timeZone: 'Europe/Paris' })} - ${date.dateFin.toLocaleDateString('fr-FR', { hour: '2-digit', - minute: '2-digit' + minute: '2-digit', + timeZone: 'Europe/Paris' })} `).join(''); diff --git a/server/exportService.ts b/server/exportService.ts index e8a8ab6..c6889a4 100644 --- a/server/exportService.ts +++ b/server/exportService.ts @@ -94,7 +94,8 @@ export function generateExcelExport(sequenceInfo: SequenceInfo): Buffer { month: 'long', day: 'numeric', hour: '2-digit', - minute: '2-digit' + minute: '2-digit', + timeZone: 'Europe/Paris' }) }); }); @@ -137,7 +138,8 @@ export function generatePDFExport(sequenceInfo: SequenceInfo): Buffer { month: 'long', day: 'numeric', hour: '2-digit', - minute: '2-digit' + minute: '2-digit', + timeZone: 'Europe/Paris' })}`, 14, yPos); yPos += 5; }); @@ -474,7 +476,8 @@ export function generateFeuillePresence(feuilleInfo: FeuillePresenceInfo): Buffe month: 'long', day: 'numeric', hour: '2-digit', - minute: '2-digit' + minute: '2-digit', + timeZone: 'Europe/Paris' })}`, 14, yPos); doc.setFont('helvetica', 'normal'); yPos += 10;