resolve datetime conflict for notifications
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user