Error: Parameter 'to' must be a correct time as specified in RFC3339 and must be properly URL-escaped.