Fix finder date constraints and tests
feature #9360 [Finder] Fix finder date constraints and tests (ruian)

This PR was merged into the 2.5-dev branch.

Discussion
----------

[Finder] Fix finder date constraints and tests

Description:
When you search some files with date constraints, all folders are given, even if they are not in the date scope.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  |no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9303
| License       | MIT

Commits
-------

4ccafa6 Fix finder date constraints and tests