progress on reports.
This commit is contained in:
@@ -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
Reference in New Issue
Block a user