mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
prevent crashes due to timezone === null
This commit is contained in:
parent
4fc833c84c
commit
d73a87b1b9
@ -374,6 +374,8 @@ const timeForThem = $computed(() => {
|
||||
if (tzInfo.length == 0) continue;
|
||||
|
||||
const tz = tzInfo[0].timezone;
|
||||
if (!tz) continue;
|
||||
|
||||
const theirTime = new Date().toLocaleString("en-US", {
|
||||
timeZone: tz,
|
||||
hour12: false,
|
||||
|
Loading…
Reference in New Issue
Block a user