resolve datetime conflict for notifications

This commit is contained in:
2026-03-19 16:58:21 +01:00
parent dbed114843
commit 72d2cfae27
5 changed files with 12 additions and 5 deletions
+3 -1
View File
@@ -1,4 +1,6 @@
export default function formatDate(d: string | Date): string {
export default function formatDate(d: string | Date | number | null | undefined): string {
if (!d) return "Date inconnue";
const date = d instanceof Date ? d : new Date(d);
const jj = String(date.getUTCDate()).padStart(2, "0");