From 91ed4015da4656130307cb9f826e5a385f542753 Mon Sep 17 00:00:00 2001 From: chelsea Date: Mon, 16 Feb 2026 00:23:56 -0600 Subject: [PATCH] fix 3 --- synculous-client/src/app/dashboard/routines/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/synculous-client/src/app/dashboard/routines/page.tsx b/synculous-client/src/app/dashboard/routines/page.tsx index 6d85c1a..dabee32 100644 --- a/synculous-client/src/app/dashboard/routines/page.tsx +++ b/synculous-client/src/app/dashboard/routines/page.tsx @@ -136,10 +136,10 @@ function formatTime(t: string): string { } function formatTimeLocal(t: string, offsetMinutes: number): string { - const mins = timeToMinutes(t) - offsetMinutes; - let h = Math.floor(mins / 60) % 24; + const totalMins = timeToMinutes(t) - offsetMinutes; + let h = Math.floor(totalMins / 60) % 24; if (h < 0) h += 24; - const m = mins % 60; + let m = totalMins % 60; if (m < 0) m += 60; const period = h >= 12 ? 'PM' : 'AM'; const dh = h > 12 ? h - 12 : h === 0 ? 12 : h;