Fixed hours

pull/2211/head
jukioo 2022-10-24 13:09:19 +03:00 committed by GitHub
parent 4555662d16
commit a6f23a4053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -88,7 +88,9 @@ function draw() {
g.drawLine(watch.x - facew, y + watch.y, watch.x - facew + w, y + watch.y);
// get hour y position
if (i == date.getHours() % 12) houry = y;
var hour = date.getHours() % 12;
if (hour == 0) hour = 12;
if (i == hour) houry = y;
}
// draw minute meter