From: Ed Ravin Date: Sat, 6 May 2017 02:53:59 +0000 (-0400) Subject: fix BIND timezone parsing issue X-Git-Tag: collectd-5.7.2~2^2~7 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=938d6380a94cd898a28c5ad1a37c19e7bd47db4c;p=collectd.git fix BIND timezone parsing issue --- diff --git a/src/bind.c b/src/bind.c index c69c56dc..597b90d3 100644 --- a/src/bind.c +++ b/src/bind.c @@ -433,7 +433,8 @@ static int bind_xml_read_timestamp(const char *xpath_expression, /* {{{ */ return (-1); } - *ret_value = mktime(&tm); + tzset(); + *ret_value = mktime(&tm) - timezone; /* fix strptime() misinterpretation */ xmlXPathFreeObject(xpathObj); return (0);