chore: fix date tests

This commit is contained in:
Mo
2022-12-01 07:05:02 -06:00
parent 1ee6be4e5c
commit 73ca12275f
6 changed files with 31 additions and 20 deletions

View File

@@ -63,12 +63,6 @@ export function numDaysBetweenDates(date1: Date, date2: Date): number {
return Math.floor(diffInDays)
}
export function addDays(date: Date, days: number) {
const result = new Date(date)
result.setDate(result.getDate() + days)
return result
}
/**
* @returns Date with day equal to first day of the offseted month
*/