aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/util
diff options
context:
space:
mode:
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()
+ );
}