Skip to content

Commit 94f6abd

Browse files
committed
fixed hours
1 parent 99d2cce commit 94f6abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎02 - JS + CSS Clock/index-FINISHED.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
constminsDegrees=((mins/60)*360)+90;
8585
minsHand.style.transform=`rotate(${minsDegrees}deg)`;
8686

87-
consthour=now.getMinutes();
87+
consthour=now.getHours();
8888
consthourDegrees=((mins/12)*360)+90;
8989
hourHand.style.transform=`rotate(${hourDegrees}deg)`;
9090
}

0 commit comments

Comments
(0)