Checkpoint: Fix: ajout timeZone Europe/Paris dans tous les toLocaleDateString avec heure dans emailService.ts et exportService.ts — corrige l'affichage 7h00 au lieu de 9h00 dans les mails de rappel
This commit is contained in:
@@ -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'
|
||||
})}<br/>
|
||||
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'
|
||||
})}
|
||||
</div>
|
||||
`)).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'
|
||||
})}
|
||||
</div>
|
||||
`).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'
|
||||
})}
|
||||
</div>
|
||||
`).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'
|
||||
})}
|
||||
</div>
|
||||
`).join('');
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user