diff --git a/src/system/date.ts b/src/system/date.ts index c44bde7..0bbf431 100644 --- a/src/system/date.ts +++ b/src/system/date.ts @@ -125,7 +125,7 @@ export function fromNow(date: Date, short?: boolean): string { } export function formatDate( - date: Date, + date: Date | number, format: 'full' | 'long' | 'medium' | 'short' | string | null | undefined, locale?: string, cache: boolean = true,