src/main.cpp

changeset 19
2c128952f198
parent 16
730a5638c4ad
child 20
8639ccd855ba
--- a/src/main.cpp	Sat Feb 01 16:59:45 2025 +0100
+++ b/src/main.cpp	Sat Feb 01 17:15:14 2025 +0100
@@ -263,6 +263,9 @@
 
             // initialize first day (which must be a Monday, possibly the year before)
             sys_days day_to_check = January / Monday[1] / report_year;
+            if (year_month_day{day_to_check}.day() != 1d) {
+                day_to_check -= days{7};
+            }
 
             // remember the starting point
             auto start = day_to_check;

mercurial