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
+1 -1
View File
@@ -1,5 +1,5 @@
export default function formatTime(d: string | Date | null | undefined): string {
export default function formatTime(d: string | Date | number | null | undefined): string {
if (!d) return "Heure inconnue";
const date = d instanceof Date ? d : new Date(d);