PIM-2525: Fixing the date filters (ORM version)