Skip to content

Commit

Permalink
Merge pull request #44 from schooldev49/main
Browse files Browse the repository at this point in the history
Fix Nebula's clock not showing correct AM/PM time.
  • Loading branch information
GreenyDEV committed Dec 9, 2022
2 parents dad9f18 + 3675f11 commit 84105fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions static/resources/nebulamain.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ window.addEventListener("load", () => {
var m = date.getMinutes() // 0 - 59
var s = date.getSeconds() // 0 - 59
var session = "AM"
h = h == 12 ? 24 : h;

if (h == 0) {
h = 12
}
if (h > 12) {
} else if (h >= 12) {
h = h - 12
session = "PM"
}
Expand Down

0 comments on commit 84105fe

Please sign in to comment.