Commit c48b680a authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Use mktime() rather than the unportable timegm(). The downside is that we're

at the mercy of the TZ environment variable.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1785 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent de066518
......@@ -113,7 +113,7 @@ TIM_parse(const char *p)
for (r = fmts; *r != NULL; r++) {
memset(&tm, 0, sizeof tm);
if (strptime(p, *r, &tm) != NULL)
return(timegm(&tm));
return (mktime(&tm));
}
return (0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment