progress on reports.

This commit is contained in:
2024-11-10 22:09:14 -08:00
parent eed9bfbd11
commit df3183f85c
7 changed files with 54 additions and 33 deletions

View File

@@ -211,7 +211,7 @@ const lastYearPeriod = (date) => {
// Create new Date objects for both years
const originalDate = new Date(originalYear, date.getMonth(), date.getDate());
const priorYearDate = new Date(priorYear, date.getMonth(), date.getDate());
const priorYearDate = dateFns.addDays(new Date(priorYear, date.getMonth(), date.getDate()), 1);
return {end: formatDateMMDDYYYY(originalDate), start: formatDateMMDDYYYY(priorYearDate)};
}

File diff suppressed because one or more lines are too long