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