261 // initialize counters |
261 // initialize counters |
262 unsigned column = 0, row = 0; |
262 unsigned column = 0, row = 0; |
263 |
263 |
264 // initialize first day (which must be a Monday, possibly the year before) |
264 // initialize first day (which must be a Monday, possibly the year before) |
265 sys_days day_to_check = January / Monday[1] / report_year; |
265 sys_days day_to_check = January / Monday[1] / report_year; |
|
266 if (year_month_day{day_to_check}.day() != 1d) { |
|
267 day_to_check -= days{7}; |
|
268 } |
266 |
269 |
267 // remember the starting point |
270 // remember the starting point |
268 auto start = day_to_check; |
271 auto start = day_to_check; |
269 |
272 |
270 // now add all entries for Monday, Tuesdays, etc. always starting back in january |
273 // now add all entries for Monday, Tuesdays, etc. always starting back in january |