diff options
author | Ben Harris <ben@tilde.team> | 2023-05-30 18:27:33 -0400 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2023-05-30 18:30:12 -0400 |
commit | 439135944c3e369675999fe5b526809f85df5b32 (patch) | |
tree | 6093e16f0ef0046235542db12f01a7dc4a77e10e /src | |
parent | f2cf1d8c793dee5cd6a0a4cd1b75ea795311afb7 (diff) | |
download | voidsky-439135944c3e369675999fe5b526809f85df5b32.tar.zst |
make eslint happy
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/strings/time.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/strings/time.ts b/src/lib/strings/time.ts index 40a307c30..3f2847558 100644 --- a/src/lib/strings/time.ts +++ b/src/lib/strings/time.ts @@ -22,7 +22,11 @@ export function ago(date: number | string | Date): string { } else if (diffSeconds < WEEK) { return `${Math.floor(diffSeconds / DAY)}d` } else { - return new Date(ts).toLocaleDateString('en-us', {year: 'numeric', month: 'short', day: 'numeric'}) + return new Date(ts).toLocaleDateString('en-us', { + year: 'numeric', + month: 'short', + day: 'numeric', + }) } } |