From 1dbc9daca13a0d881b6f8dbe84a4b6f1da1d37c0 Mon Sep 17 00:00:00 2001 From: des Date: Mon, 30 Jul 2007 13:50:16 +0000 Subject: [PATCH] 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 --- varnish-cache/lib/libvarnish/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5