]> err.no Git - varnish/commitdiff
Use mktime() rather than the unportable timegm(). The downside is that we're
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 30 Jul 2007 13:50:16 +0000 (13:50 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 30 Jul 2007 13:50:16 +0000 (13:50 +0000)
at the mercy of the TZ environment variable.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1785 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvarnish/time.c

index f2a375d0967248bff886be1af0b286b0a11b116c..f1ef97a50b69ea38ea93125108750d5b3788d98e 100644 (file)
@@ -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);
 }