diff --git a/webui.html b/webui.html index 9953f69..90a2e2e 100644 --- a/webui.html +++ b/webui.html @@ -772,7 +772,11 @@ function renderFiles(files) { document.getElementById('empty').style.display = visible ? 'none' : ''; const days = groupByDay(files); - const today = new Date().toISOString().slice(0, 10); + // Local date, not toISOString() — f.date is the recording start in local + // time, so a UTC "today" leaves the current day collapsed for part of every + // day in any non-UTC timezone (00:00–02:00 in UTC+2, all evening in UTC−5). + const now = new Date(); + const today = `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())}`; days.forEach((dayFiles, day) => { const dayId = 'day-' + day.replace(/-/g, '');