Display end time instead of start time in Info Box clock widget

- 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
This commit is contained in:
Spicy_Marinara
2025-10-22 00:38:35 +02:00
parent 55cef9bee2
commit 5b7928b443
+2 -1
View File
@@ -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;