fix timezone bug
This commit is contained in:
parent
fd52e266c6
commit
ae2a9f1eb1
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatMatchTimestamp(timestampString: string): string {
|
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"))) {
|
if (timestamp.startOf("day").equals(DateTime.now().startOf("day"))) {
|
||||||
return timestamp.toFormat("HH:mm");
|
return timestamp.toFormat("HH:mm");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue