Why my clock doesn't show current time? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why my clock doesn't show current time?

I code simple clock but it doesn't shiw current time Can anyone help me? https://code.sololearn.com/W6EvS1tnGukT/?ref=app

16th Mar 2020, 2:11 PM
Mohammad
Mohammad - avatar
12 Answers
0
because 0 degree is pointing at straight right. dirty fix, just rotate the entire clock -90deg
16th Mar 2020, 2:49 PM
Taste
Taste - avatar
0
I don't understand
16th Mar 2020, 3:22 PM
Mohammad
Mohammad - avatar
0
It steel not work
16th Mar 2020, 3:28 PM
Mohammad
Mohammad - avatar
0
Now is 7:00 pm
16th Mar 2020, 3:28 PM
Mohammad
Mohammad - avatar
0
its perferct in my device. it should take local time in your device. so make sure your device time are correct
16th Mar 2020, 3:30 PM
Taste
Taste - avatar
0
Look at this it shows time correctly https://code.sololearn.com/W6VQgHrOIk19/?ref=app
16th Mar 2020, 3:31 PM
Mohammad
Mohammad - avatar
0
both shown same time for me
16th Mar 2020, 3:36 PM
Taste
Taste - avatar
0
Wow I'm confused
16th Mar 2020, 3:38 PM
Mohammad
Mohammad - avatar
0
Let me check it in web sololearn
16th Mar 2020, 3:38 PM
Mohammad
Mohammad - avatar
0
The strange one is: I creat date object and test it with document.write() the time that show me is correct but the time clock show me is incorrect
16th Mar 2020, 3:54 PM
Mohammad
Mohammad - avatar
0
I need to know what is the deffrense between javascript's frameworks
18th Mar 2020, 11:48 AM
M.samy_ Smart Sa7
M.samy_ Smart Sa7 - avatar