Hi there, I am not sure if I am doing something wrong here, but it seems the DateRangePicker with filter is excluding the first record with the first date.
Here is my DatePicker:
DateRangePicker::create(array(
"name" => "dateRange",
"icon"=>true
));
When it sends/loads , it sends this to the report: start=2023-04-01 00:00:00 end=2023-04-30 23:59:59
Report has a query with filter:
ORDER BY T.startDate")
->pipe(new Filter(array(
array("startDate",">=",$this->params["dateRange"][0]),
array("startDate","<=",$this->params["dateRange"][1])
)))
I look at the database which contains records with startDate='2023-04-01'
When I select using the date picker April 1st to April 30th, it sends the following start=2023-04-01 00:00:00 end=2023-04-30 23:59:59 but all records with startDate='2023-04-01' are excluded.
When I change the date picker to March 31st, to April 30th, it sends the following to the server, and it includes all April 1st results startDate='2023-04-01'. this start=2023-03-31 00:00:00 end=2023-04-30 23:59:59
However, my filter says >= array("startDate",">=",$this->params["dateRange"][0]), so I shouldn't have to select March 31 to include April 1st records, correct?
thank you Paulo