# HG changeset patch # User Mike Becker # Date 1738426514 -3600 # Node ID 2c128952f198fbd2489031abcf6e6d1fc03a9331 # Parent fd7a7785c9630892d53226e11c417c24293284bc fix accidentally breaking the start of year diff -r fd7a7785c963 -r 2c128952f198 src/main.cpp --- 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;