React Date Filter

I have a construction management application in Brazil, within that, I have an image postponing part in daily reports and I also have the function of seeing all the works already indexed in the construction, as well as filtering by a caption using an input and filtering by index date using a Radix Dialog and the react-day-picker lib. This is all working almost perfectly, except for the fact that when I filter the images by date, I also filter the number and date of the report in which it was indexed (I'll put photos to exemplify) and in specific cases the reports are returned without be within range Photos:
1 Reply
legacyn
legacyn14mo ago
Within the code, you can see that I filter the reports that are within the date range, but even so, sometimes reports are returned that are outside the range Only for translation, where it says: Intervalo selecionado: 25 de maio - 25 de maio. It's Selected range: May 25th - May 25th. But we can see that the report of the 24th was returned