The DateTime comparison fails if the time is not set to 0

Passing a DateTime with `new DateTime()` (which also sets the current time) creates an issue when doing the comparison in the `array_filter` closure function.