Just noticed that there is an issue in Analog Clock app. It is showing in correct time.
At the time of the post, the time was 14:45 PM but clock face was showing 1:54 PM
Attached the reference!!
Has this setting been tried before upload?
WebIDE >> Communications >> Set Current Time
There is no issues with system time. The Hand() function for rendering hours is not provided the correct angle.
hand(360*minuteDate.getHours()/12, -10, 50);
As Is - > 360*minuteDate.getHours()/12
Should Be - >minuteDate.getHours() % 12 * 30 + minuteDate.getMinutes() / 2 | 0
I got the new values from Mixed Clock example! and it is working as expected with new values
What is your time zone? That off by one hour might be it.
I’m in UK time zone. Anyway I have fixed the problem by adjusting the hand arm angle. See my previous comment.
Thanks! That was a really stupid mistake of mine!
Would you be able/willing to send a GitHub PR to fix it, or shall I do it?
Yes, I will send the PR in day or two.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem