diff --git a/package.json b/package.json index 33bd394..8c874ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-weekly-todo-list", - "version": "1.80.2", + "version": "1.80.3", "description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view", "main": "index.js", "scripts": { diff --git a/src/components/WeeklyView.tsx b/src/components/WeeklyView.tsx index 1cab1f0..d0c4ad3 100644 --- a/src/components/WeeklyView.tsx +++ b/src/components/WeeklyView.tsx @@ -5604,15 +5604,8 @@ export default function WeeklyView() { {syncError && } {isPortrait ? (() => { - const today = new Date(); - const visibleDays = getVisibleDays(); - const isTodayInWeek = visibleDays.some(d => - d.getDate() === today.getDate() && - d.getMonth() === today.getMonth() && - d.getFullYear() === today.getFullYear() - ); - const refDate = isTodayInWeek ? today : getCWReferenceDate(visibleDays); - return refDate.toLocaleDateString(profile.language || "de-DE", { weekday: "short", day: "2-digit", month: "long", year: "numeric" }); + const shownDay = getVisibleDays()[0]; + return shownDay.toLocaleDateString(profile.language || "de-DE", { weekday: "short", day: "2-digit", month: "long", year: "numeric" }); })() : profile.headerDisplay === "none" ? "" : profile.headerDisplay === "date" ? (() => {