From e7c14465affc27f86a86f9d030f006b7582a74df Mon Sep 17 00:00:00 2001 From: schooldev49 <102310270+schooldev49@users.noreply.github.com> Date: Wed, 7 Dec 2022 21:11:21 -0500 Subject: [PATCH] Update nebulamain.js --- static/resources/nebulamain.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/resources/nebulamain.js b/static/resources/nebulamain.js index ce9ef86..99b2d76 100644 --- a/static/resources/nebulamain.js +++ b/static/resources/nebulamain.js @@ -42,7 +42,9 @@ window.addEventListener("load", () => { if (h == 0) { h = 12 } - if (h > 12) { + h = h == 12 ? 24 : h; + + if (h >= 12) { h = h - 12 session = "PM" }