Add logic for 12 hr mode to handle midnight 00:00 as 12:00

pull/1010/head
Ray Holder 2021-12-05 16:36:29 -06:00
parent a385c09922
commit 9c7d2b09a5
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ function draw(){
} else {
h = " " + h;
}
} else if (h === 0) {
// display 12:00 instead of 00:00 for 12 hr mode
h = "12";
}
//draw separator