diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2023-12-28 17:22:19 +0000 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2023-12-28 17:22:19 +0000 |
| commit | ffd2505abf321eb747295c0a184dbe9388c1fd02 (patch) | |
| tree | 0a0a22b322aff393d098bbc0cf819f45ca67af83 /src/util | |
| parent | 813e1c5ef4f94b23d193bd812c51b7e7dc89ce2f (diff) | |
| download | submelon.dev-ffd2505abf321eb747295c0a184dbe9388c1fd02.tar.gz submelon.dev-ffd2505abf321eb747295c0a184dbe9388c1fd02.tar.bz2 submelon.dev-ffd2505abf321eb747295c0a184dbe9388c1fd02.zip | |
Add css override for Framework forums; run format
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/timestamp.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/util/timestamp.ts b/src/util/timestamp.ts index 39683cc..f8aaa38 100644 --- a/src/util/timestamp.ts +++ b/src/util/timestamp.ts @@ -68,5 +68,11 @@ export function getTimestamp(seconds: number): string { * Returns a date in the ISO-8601 format */ export function formatDate(date: Date): string { - return date.getUTCFullYear() + "-" + (date.getUTCMonth() + 1) + "-" + date.getUTCDate(); + return ( + date.getUTCFullYear() + + "-" + + (date.getUTCMonth() + 1) + + "-" + + date.getUTCDate() + ); } |
