diff --git a/backend/src/components/VehicleScheduler.tsx b/backend/src/components/VehicleScheduler.tsx index 730cf6615..cd20b8747 100644 --- a/backend/src/components/VehicleScheduler.tsx +++ b/backend/src/components/VehicleScheduler.tsx @@ -49,9 +49,11 @@ const VehicleScheduler = ( suppliers, statuses, filter: { - from: query.view !== 'day' ? query.start : undefined, + // from: query.view !== 'day' ? query.start : undefined, + from: query.view !== 'day' ? new Date(query.start.getFullYear(), query.start.getMonth() - 1, 1) : undefined, dateBetween: query.view === 'day' ? new Date(query.end.getFullYear(), query.end.getMonth(), query.end.getDate(), 0, 0, 0) : undefined, - to: query.view === 'month' ? query.end : new Date(query.end.getFullYear(), query.end.getMonth() + 1, 0), + // to: query.view === 'month' ? query.end : new Date(query.end.getFullYear(), query.end.getMonth() + 1, 0), + to: new Date(query.end.getFullYear(), query.end.getMonth() + 1, 0), pickupLocation: filter?.pickupLocation, dropOffLocation: filter?.dropOffLocation, keyword: filter?.keyword,