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',
|
month: 'long',
|
||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute: '2-digit'
|
minute: '2-digit',
|
||||||
|
timeZone: 'Europe/Paris'
|
||||||
})}<br/>
|
})}<br/>
|
||||||
au ${date.dateFin.toLocaleDateString('fr-FR', {
|
au ${date.dateFin.toLocaleDateString('fr-FR', {
|
||||||
weekday: 'long',
|
weekday: 'long',
|
||||||
@@ -74,7 +75,8 @@ export async function sendInscriptionConfirmation(params: {
|
|||||||
month: 'long',
|
month: 'long',
|
||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute: '2-digit'
|
minute: '2-digit',
|
||||||
|
timeZone: 'Europe/Paris'
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
`)).join('');
|
`)).join('');
|
||||||
@@ -268,7 +270,8 @@ export async function sendRappelEmail(params: {
|
|||||||
month: 'long',
|
month: 'long',
|
||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute: '2-digit'
|
minute: '2-digit',
|
||||||
|
timeZone: 'Europe/Paris'
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
`).join('');
|
`).join('');
|
||||||
@@ -409,7 +412,8 @@ export async function sendRappelJ7Email(params: {
|
|||||||
month: 'long',
|
month: 'long',
|
||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute: '2-digit'
|
minute: '2-digit',
|
||||||
|
timeZone: 'Europe/Paris'
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
`).join('');
|
`).join('');
|
||||||
@@ -518,10 +522,12 @@ export async function sendRappelJ1Email(params: {
|
|||||||
month: 'long',
|
month: 'long',
|
||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute: '2-digit'
|
minute: '2-digit',
|
||||||
|
timeZone: 'Europe/Paris'
|
||||||
})} - ${date.dateFin.toLocaleDateString('fr-FR', {
|
})} - ${date.dateFin.toLocaleDateString('fr-FR', {
|
||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute: '2-digit'
|
minute: '2-digit',
|
||||||
|
timeZone: 'Europe/Paris'
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
`).join('');
|
`).join('');
|
||||||
|
|||||||
@@ -94,7 +94,8 @@ export function generateExcelExport(sequenceInfo: SequenceInfo): Buffer {
|
|||||||
month: 'long',
|
month: 'long',
|
||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute: '2-digit'
|
minute: '2-digit',
|
||||||
|
timeZone: 'Europe/Paris'
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -137,7 +138,8 @@ export function generatePDFExport(sequenceInfo: SequenceInfo): Buffer {
|
|||||||
month: 'long',
|
month: 'long',
|
||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute: '2-digit'
|
minute: '2-digit',
|
||||||
|
timeZone: 'Europe/Paris'
|
||||||
})}`, 14, yPos);
|
})}`, 14, yPos);
|
||||||
yPos += 5;
|
yPos += 5;
|
||||||
});
|
});
|
||||||
@@ -474,7 +476,8 @@ export function generateFeuillePresence(feuilleInfo: FeuillePresenceInfo): Buffe
|
|||||||
month: 'long',
|
month: 'long',
|
||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute: '2-digit'
|
minute: '2-digit',
|
||||||
|
timeZone: 'Europe/Paris'
|
||||||
})}`, 14, yPos);
|
})}`, 14, yPos);
|
||||||
doc.setFont('helvetica', 'normal');
|
doc.setFont('helvetica', 'normal');
|
||||||
yPos += 10;
|
yPos += 10;
|
||||||
|
|||||||
Reference in New Issue
Block a user