The second argument to curl_getdate() once took a time argument, but
that feature has been gone for decades, thus passing in a date there
makes no difference.
Closes #15420
{
int rc;
const char *parse = NULL;
- time_t now;
bool longopt = FALSE;
bool singleopt = FALSE; /* when true means '-o foo' used '-ofoo' */
size_t nopts = 0; /* options processed in `flag`*/
nextarg++;
break;
}
- now = time(NULL);
- config->condtime = (curl_off_t)curl_getdate(nextarg, &now);
+ config->condtime = (curl_off_t)curl_getdate(nextarg, NULL);
if(-1 == config->condtime) {
/* now let's see if it is a filename to get the time from instead! */
rc = getfiletime(nextarg, global, &value);