tags:

views:

39

answers:

1

I am trying to use a clock example on the following website. http://blogs.ilog.com/elixir/2008/02/05/clockwidget1/

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  A: 

Hi,

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

hourNeedle.value = h%12;

Hope this helps,

Damien Mandrioli
Thanks alot. it works now
Zeeshan Rang