aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-03-14 20:47:58 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-03-14 20:47:58 +0100
commitae2a9f1eb103fce831fd7db65c58980cd0e71088 (patch)
treeb88f01ddca9091b03e2b914747c613f7b83e82c3 /web/pw-server/src
parentfd52e266c6e25999a49c36f17342977b759a2612 (diff)
downloadplanetwars.dev-ae2a9f1eb103fce831fd7db65c58980cd0e71088.tar.xz
planetwars.dev-ae2a9f1eb103fce831fd7db65c58980cd0e71088.zip
fix timezone bug
Diffstat (limited to 'web/pw-server/src')
-rw-r--r--web/pw-server/src/routes/index.svelte2
1 files changed, 1 insertions, 1 deletions
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 {