mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 05:57:32 -07:00
fix: "24"th hour doesn't exist, it's 0
This commit is contained in:
parent
abf746cf84
commit
336603a2f4
1 changed files with 5 additions and 3 deletions
|
@ -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 a new issue