From bc44687735999a65ca293fa95d914455be3bd26e Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Wed, 7 Oct 2026 07:57:05 +0200 Subject: [PATCH] Fix SVG Y-axis: 0:00 at bottom now correct --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index b9f7a75..5c17c1a 100644 --- a/index.html +++ b/index.html @@ -338,9 +338,9 @@ } function angleForTime(date) { - // 0:00 = bottom (-90°), 12:00 = top (90°), 24:00 = bottom (-90°) + // 0:00 = bottom, 6:00 = left, 12:00 = top, 18:00 = right var hours = date.getHours() + date.getMinutes() / 60; - return ((hours / 24) * 360 - 90) * Math.PI / 180; + return ((hours / 24) * 360 + 90) * Math.PI / 180; } function pointOnCircle(date, radius) {