From 8e481e391d45e6e66e6685b408c2aec48572fd5d Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sun, 2 Jun 2024 12:44:36 +1000 Subject: [PATCH] Fix home time --- slices/main/assets/js/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slices/main/assets/js/app.ts b/slices/main/assets/js/app.ts index d0598c1..98ad35b 100644 --- a/slices/main/assets/js/app.ts +++ b/slices/main/assets/js/app.ts @@ -35,7 +35,7 @@ import { md_gallery } from "./gallery.js"; var hours = date.getHours(); var minutes = date.getMinutes(); var seconds = date.getSeconds(); - var ampm = hours >= 12 ? "PM" : "AM"; + var ampm = (hours >= 12 || hours == 0) ? "PM" : "AM"; hours = hours % 12; hours = hours ? hours : 12; // the hour '0' should be '12'