patch date filter

This commit is contained in:
Maidul Islam
2024-06-14 20:57:10 -04:00
parent a332019c25
commit ae177343d5
3 changed files with 7 additions and 4 deletions
@@ -23,7 +23,8 @@ export const LogsSection = () => {
defaultValues: {
page: 1,
perPage: 10,
startDate: new Date(new Date().setDate(new Date().getDate() - 1))
startDate: new Date(new Date().setDate(new Date().getDate() - 1)), // day before today
endDate: new Date(new Date(Date.now()).setHours(23, 59, 59, 999)) // end of today
}
});