r1786 - trunk/varnish-cache/bin/varnishd

des at projects.linpro.no des at projects.linpro.no
Mon Jul 30 15:54:48 CEST 2007


Author: des
Date: 2007-07-30 15:54:48 +0200 (Mon, 30 Jul 2007)
New Revision: 1786

Modified:
   trunk/varnish-cache/bin/varnishd/varnishd.c
Log:
Explicitly set TZ to GMT.


Modified: trunk/varnish-cache/bin/varnishd/varnishd.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/varnishd.c	2007-07-30 13:50:16 UTC (rev 1785)
+++ trunk/varnish-cache/bin/varnishd/varnishd.c	2007-07-30 13:54:48 UTC (rev 1786)
@@ -387,6 +387,9 @@
 	setbuf(stdout, NULL);
 	setbuf(stderr, NULL);
 
+	setenv("TZ", "GMT", 1);
+	tzset();
+
 	memset(cli, 0, sizeof cli);
 	cli[0].sb = vsb_new(NULL, NULL, 0, VSB_AUTOEXTEND);
 	XXXAN(cli[0].sb);




More information about the varnish-commit mailing list