Sat, 01 Feb 2025 17:15:14 +0100
fix accidentally breaking the start of year
src/main.cpp | file | annotate | diff | comparison | revisions |
--- 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;