Fixing date granularity problem for until parameter.