From 5a7aca3b91ef687c0472ba91d4530771b3fabbe8 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 13 Jun 2023 17:06:32 -0700 Subject: [PATCH] fix: "24"th hour doesn't exist, it's 0 --- packages/client/src/pages/user/home.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/client/src/pages/user/home.vue b/packages/client/src/pages/user/home.vue index 9c4e97a4cc..83dba3628c 100644 --- a/packages/client/src/pages/user/home.vue +++ b/packages/client/src/pages/user/home.vue @@ -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 "";