chore: change date format

This commit is contained in:
Riccardo Senica
2025-01-25 10:17:57 +00:00
parent cdef3ec86a
commit c3dae18818
3 changed files with 7 additions and 7 deletions

View File

@@ -114,14 +114,14 @@ export class ExpenseReporter {
dayLogs: ReportDayLogsData
): string {
const formatDate = (date: Date) =>
date.toLocaleDateString('en-US', {
date.toLocaleDateString('en-GB', {
year: 'numeric',
month: 'long',
day: 'numeric'
});
const formatCurrency = (amount: number) =>
amount.toLocaleString('en-US', {
amount.toLocaleString('en-GB', {
style: 'currency',
currency: 'EUR'
});
@@ -279,7 +279,7 @@ export class ExpenseReporter {
const response = await this.resend.emails.send({
from: this.senderEmail,
to: this.recipientEmail,
subject: `Diary Report: ${from.toLocaleDateString()} - ${to.toLocaleDateString()}`,
subject: `Diary Report: ${from.toLocaleDateString('en-GB')} - ${to.toLocaleDateString('en-GB')}`,
html: htmlContent,
attachments
});