From 1cc0f7513a7b71b55a43cf5d58bef2d05845a62b Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 22 Jul 2022 01:14:10 -0400 Subject: [PATCH] Adds number to allowed types to formatDate --- src/system/date.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,