ILog Elixir clock example.

203 views Asked by At

I am trying to use a clock example on the following website.

Everything in the clock is working expect for the hour hand. The hour hand stays on 12 all the time.

I have used the entire code as it is. changed nothing in it. The clock is working fine on the example page.

Can some one help me with this issue?

Zeeshan

1

There are 1 answers

0
AudioBubble On BEST ANSWER

If you are using a 24h format machine, add "%12" in the setTime method:

hourNeedle.value = h%12;

Hope this helps,