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