diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-03-14 20:47:58 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-03-14 20:47:58 +0100 |
commit | ae2a9f1eb103fce831fd7db65c58980cd0e71088 (patch) | |
tree | b88f01ddca9091b03e2b914747c613f7b83e82c3 /web/pw-server/src | |
parent | fd52e266c6e25999a49c36f17342977b759a2612 (diff) | |
download | planetwars.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.svelte | 2 |
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 { |