From 5b7928b4430d53da65427a03edc1274193a634e5 Mon Sep 17 00:00:00 2001 From: Spicy_Marinara Date: Wed, 22 Oct 2025 00:38:35 +0200 Subject: [PATCH] Display end time instead of start time in Info Box clock widget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed time display to show timeEnd (second time in range) instead of timeStart - Clock now displays 14:22 instead of 14:07 when time format is '14:07 → 14:22' - Falls back to timeStart if timeEnd not available, then to '12:00' default --- src/systems/rendering/infoBox.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/systems/rendering/infoBox.js b/src/systems/rendering/infoBox.js index ad3172c..6aebea6 100644 --- a/src/systems/rendering/infoBox.js +++ b/src/systems/rendering/infoBox.js @@ -261,7 +261,8 @@ export function renderInfoBox() { `; // Time widget - always show (editable even if empty) - const timeDisplay = data.timeStart || '12:00'; + // Display the end time (second time in range) if available, otherwise start time + const timeDisplay = data.timeEnd || data.timeStart || '12:00'; // Parse time for clock hands const timeMatch = timeDisplay.match(/(\d+):(\d+)/); let hourAngle = 0;