Bug fix on hours resetting after noon

master
David Volovskiy 2025-02-23 13:27:13 -05:00
parent 14cacd9b3a
commit 4788395f03
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ function drawClock() {
var ring_percent; var ring_percent;
switch (settings.ring) { switch (settings.ring) {
case 'Hours': case 'Hours':
ring_percent = Math.round((10*((hh * 60) + mm))/72); ring_percent = Math.round((10*(((hh % 12) * 60) + mm))/72);
break; break;
case 'Minutes': case 'Minutes':
ring_percent = Math.round((10*mm)/6); ring_percent = Math.round((10*mm)/6);