fixes #4899
Merge pull request #5056 from dotCMS/issue-4899-content-search-returns-nothing-when-using-date-filter

fixes #4899