fix parsing of dates in range queries that use local date format: include the last day if query is inclusive