aboutsummaryrefslogtreecommitdiff
path: root/src/util.ts
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-02-07 18:06:04 -0500
committerAndrew Lee <alee14498@protonmail.com>2024-02-07 18:06:04 -0500
commitb21f48d0a0b3c6d32b8eb9a3b5c84f8ff3dbc136 (patch)
treec6d9b3da6a5398d6ba4456586785750969a5406e /src/util.ts
parentccd810f3e080ea2717772850647efb06df074c32 (diff)
downloadpersonal-website-b21f48d0a0b3c6d32b8eb9a3b5c84f8ff3dbc136.tar.gz
personal-website-b21f48d0a0b3c6d32b8eb9a3b5c84f8ff3dbc136.tar.bz2
personal-website-b21f48d0a0b3c6d32b8eb9a3b5c84f8ff3dbc136.zip
Using supabase as the main db
Diffstat (limited to 'src/util.ts')
-rw-r--r--src/util.ts4
1 files changed, 2 insertions, 2 deletions
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 };