idk
All checks were successful
Deploy UI / deploy (push) Successful in 2s

This commit is contained in:
Your Name 2026-05-19 20:38:39 -04:00
parent 528813d4a0
commit 7d21081780
3 changed files with 14 additions and 6 deletions

View file

@ -22,7 +22,7 @@ function Dashboard({ data, setView, setSelectedDay, setSelectedRecording }) {
// Build day map
const dayMap = {};
for (const r of data.recordings) {
const key = r.startTime.toISOString().slice(0, 10);
const key = window.toLocalDateString(r.startTime);
if (!dayMap[key]) dayMap[key] = { count: 0, minutes: 0 };
dayMap[key].count++;
dayMap[key].minutes += r.durationMinutes;
@ -145,7 +145,7 @@ function CalendarHeatmap({ dayMap, maxMinutes, onDayClick }) {
for (let d = 1; d <= daysInMonth; d++) {
const dateStr = `${year}-${String(month + 1).padStart(2, '0')}-${String(d).padStart(2, '0')}`;
const info = dayMap[dateStr];
const isToday = dateStr === new Date().toISOString().slice(0, 10);
const isToday = dateStr === window.toLocalDateString(new Date());
cells.push(
<div
key={d}