Sql query is not working with >, <, >=, <= operators for custom properties of date format

Does anyone experience the problem that cql request that contains comparison for dates is not working? For example:
content/search?cql=reviewDate<endOfDay()
gives the same list of results as
content/search?cql=reviewDate>endOfDay(),
hovewer the: content/search?cql=reviewDate=endOfDay() gives me the correct result.