Changed time filtering from exclude method to filter method, because exclude was not returning the expected results