From ae2a9f1eb103fce831fd7db65c58980cd0e71088 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Mon, 14 Mar 2022 20:47:58 +0100 Subject: [PATCH] fix timezone bug --- web/pw-server/src/routes/index.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pw-server/src/routes/index.svelte b/web/pw-server/src/routes/index.svelte index 9b817d4..889d767 100644 --- a/web/pw-server/src/routes/index.svelte +++ b/web/pw-server/src/routes/index.svelte @@ -105,7 +105,7 @@ } function formatMatchTimestamp(timestampString: string): string { - let timestamp = DateTime.fromISO(timestampString); + let timestamp = DateTime.fromISO(timestampString, { zone: 'utc' }).toLocal(); if (timestamp.startOf("day").equals(DateTime.now().startOf("day"))) { return timestamp.toFormat("HH:mm"); } else {