diff --git a/index.html b/index.html index 5883d91..5cfc0b5 100644 --- a/index.html +++ b/index.html @@ -338,7 +338,8 @@ } function angleForTime(date) { - var hours = date.getHours() + date.getMinutes() / 60; + // Rotate so 6:00 real = bottom (0°), 12:00 = right (90°), 18:00 = top (180°), 0:00 = left (270°) + var hours = (date.getHours() + date.getMinutes() / 60 - 6 + 24) % 24; return ((hours / 24) * 360 - 90) * Math.PI / 180; }