X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbind.c;h=9d407d1a25f61ab5ed7b2ff031805084e5c7561b;hb=23963a8b9fae668376dd55917afbb38d759dd1d0;hp=38761775fa70dac5badbd53e8c859e8594de02ad;hpb=a30a8d4b67b0eb6f9d93bb08d04cec010a9710ab;p=collectd.git diff --git a/src/bind.c b/src/bind.c index 38761775..9d407d1a 100644 --- a/src/bind.c +++ b/src/bind.c @@ -429,7 +429,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);