fix: "24"th hour doesn't exist, it's 0
This commit is contained in:
parent
c80d91dc38
commit
5a7aca3b91
1 changed files with 5 additions and 3 deletions
|
@ -400,9 +400,11 @@ const timeForThem = $computed(() => {
|
||||||
timeZone: tz,
|
timeZone: tz,
|
||||||
hour12: false,
|
hour12: false,
|
||||||
});
|
});
|
||||||
return ` (${theirTime.split(",")[1].trim().split(":")[0]}:${theirTime
|
return ` (${theirTime
|
||||||
.split(" ")[1]
|
.split(",")[1]
|
||||||
.slice(-5, -3)})`;
|
.trim()
|
||||||
|
.split(":")[0]
|
||||||
|
.replace("24", "0")}:${theirTime.split(" ")[1].slice(-5, -3)})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return "";
|
return "";
|
||||||
|
|
Loading…
Reference in a new issue