From 9d52fcbf5ae66ed9beac86d4109892af1a9cb611 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 10 Oct 2019 20:21:32 +0100 Subject: [PATCH] Maximum day of month --- webinterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index 0f6bd3ffd..c4ed6ed37 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2825,7 +2825,7 @@ def htmlCalendar(translate: {}, \ for weekOfMonth in range(1,6): calendarStr+=' \n' for dayNumber in range(1,8): - if (weekOfMonth>1 and dayOfMonth<=daysInMonth) or \ + if (weekOfMonth>1 and dayOfMonth=dow): dayOfMonth+=1 calendarStr+=' '+str(dayOfMonth)+'\n'