feat: one-week schedule view always starting on Monday

This commit is contained in:
Niklas Ye
2026-05-22 11:56:47 +02:00
parent d4839c9f6b
commit f8e085e610
3 changed files with 14 additions and 9 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ func (m Model) renderSchedule() string {
// Window label
from := m.scheduleWindow
to := m.scheduleWindow.AddDate(0, 0, 13)
to := m.scheduleWindow.AddDate(0, 0, 6)
windowLabel := styleMuted.Render(fmt.Sprintf(" %s — %s",
from.Format("Jan 02"), to.Format("Jan 02, 2006")))