fix timezone bug

This commit is contained in:
Ilion Beyst 2022-03-14 20:47:58 +01:00
parent fd52e266c6
commit ae2a9f1eb1

View file

@ -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 {