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:
@@ -261,7 +261,8 @@ export function renderInfoBox() {
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
// Time widget - always show (editable even if empty)
|
// 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
|
// Parse time for clock hands
|
||||||
const timeMatch = timeDisplay.match(/(\d+):(\d+)/);
|
const timeMatch = timeDisplay.match(/(\d+):(\d+)/);
|
||||||
let hourAngle = 0;
|
let hourAngle = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user