Skip to content

Commit d6a80cb

Browse files
authored
Merge pull request #1994 from CmPi/patch-2
Update analog-clock.js
2 parents 87a8d30 + 0401a86 commit d6a80cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/components/analog-clock/analog-clock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
const date = datetime();
127127
const sec = (date.second() / 60) * 360;
128128
const min = (date.minute() / 60) * 360;
129-
const hr = (date.hour12() / 12) * 360;
129+
const hr = (date.hour12() / 12) * 360 + min/12;
130130
const day = date.format("DD", this.locale);
131131
const month = date.format("MMM", this.locale);
132132
const moon = date.moon();

0 commit comments

Comments
 (0)