From: des Date: Mon, 30 Jul 2007 13:50:16 +0000 (+0000) Subject: Use mktime() rather than the unportable timegm(). The downside is that we're X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dbc9daca13a0d881b6f8dbe84a4b6f1da1d37c0;p=varnish Use mktime() rather than the unportable timegm(). The downside is that we're 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 --- diff --git a/varnish-cache/lib/libvarnish/time.c b/varnish-cache/lib/libvarnish/time.c index f2a375d0..f1ef97a5 100644 --- a/varnish-cache/lib/libvarnish/time.c +++ b/varnish-cache/lib/libvarnish/time.c @@ -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); }