Problems with range searches for time with lte
fixes #2731