From b21f48d0a0b3c6d32b8eb9a3b5c84f8ff3dbc136 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 7 Feb 2024 18:06:04 -0500 Subject: Using supabase as the main db --- src/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util.ts') diff --git a/src/util.ts b/src/util.ts index 81a1e18..0c1cecc 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1,5 +1,5 @@ // Format date to a string -function formatDate(date: Date): string { +function formatDate(date: string): string { const options: Intl.DateTimeFormatOptions = { year: 'numeric', month: 'long', @@ -12,4 +12,4 @@ function formatDate(date: Date): string { return new Date(date).toLocaleDateString(undefined, options); } -export { formatDate } +export { formatDate }; -- cgit v1.2.3