aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/util
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@protonmail.com>2023-12-28 17:22:19 +0000
committerKevin J Hoerr <kjhoerr@protonmail.com>2023-12-28 17:22:19 +0000
commitffd2505abf321eb747295c0a184dbe9388c1fd02 (patch)
tree0a0a22b322aff393d098bbc0cf819f45ca67af83 /src/util
parent813e1c5ef4f94b23d193bd812c51b7e7dc89ce2f (diff)
downloadsubmelon.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.ts8
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()
+ );
}