Merge branch 'dev' into features/notifications

# Conflicts:
#	package-lock.json
#	package.json
#	src/components/Header/Header.jsx
This commit is contained in:
Giovanni committed 2026-01-12 00:15:16 +01:00
commit 6da4880f0d
42 files changed
+2469 -1656

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
export function formatDateLetter(d) {
const monthNames = [
"Janvier", "Février", "Mars", "Avril", "Mai", "Juin",
"Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"
];
const [datePart, timePart] = d.split(' ');
const [year, month, day] = datePart.split('-');
const [hours, minutes] = timePart.split(':');
return `${day} ${monthNames[parseInt(month, 10) - 1]} ${year} à ${hours}:${minutes}`;
}
export function formatDateLetterJS(d) {
const monthNames = [
"Janvier", "Février", "Mars", "Avril", "Mai", "Juin",
"Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"
];
const [year, month, day] = d.split('-');
return `${day} ${monthNames[parseInt(month) - 1]} ${year}`;
}
+9
View File
@@ -0,0 +1,9 @@
import { expect, test } from 'vitest';
import formatDateLetter from './formatDateLetter';
const date = "2025-11-07"
const res = "07 Novembre 2025"
test("Format Date Letter", () => {
expect(formatDateLetter(date)).toBe(res);
})