diff options
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 }; |
