moment / momentjs.com

The website for momentjs
momentjs.com
MIT License
637 stars 818 forks source link

Fix clock hand movement #737

Closed kirara closed 2 years ago

kirara commented 2 years ago

The minute hand needs to move 6 degrees every 60 seconds (60/6=10) and hour hand needs to move 30 degrees every 60 minutes (60/30=2).

Since I copied this years ago and I just fixed it on my site, I'm giving back so others won't fall for the same trap :)

linux-foundation-easycla[bot] commented 2 years ago

CLA Signed

The committers listed above are authorized under a signed CLA.

kirara commented 2 years ago

You were right, I am wrong. I changed other parts in my code before and that changed the math. Apologies.