summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c086254)
raw | patch | inline | side by side (parent: c086254)
author | Ed Ravin <commitme@eravin.users.panix.com> | |
Sat, 6 May 2017 02:53:59 +0000 (22:53 -0400) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 7 May 2017 18:25:04 +0000 (20:25 +0200) |
src/bind.c | patch | blob | history |
diff --git a/src/bind.c b/src/bind.c
index c69c56dc552ce9a04ae33413c7d835f553015c61..597b90d332a4e26aef4cde068616960460d5d768 100644 (file)
--- a/src/bind.c
+++ b/src/bind.c
return (-1);
}
- *ret_value = mktime(&tm);
+ tzset();
+ *ret_value = mktime(&tm) - timezone; /* fix strptime() misinterpretation */
xmlXPathFreeObject(xpathObj);
return (0);