diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2024-02-07 18:06:04 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2024-02-07 18:06:04 -0500 |
| commit | b21f48d0a0b3c6d32b8eb9a3b5c84f8ff3dbc136 (patch) | |
| tree | c6d9b3da6a5398d6ba4456586785750969a5406e /src/util.ts | |
| parent | ccd810f3e080ea2717772850647efb06df074c32 (diff) | |
| download | personal-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.ts | 4 |
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 }; |
