projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
a30a8d4
)
Merge pull request #2265 from velotraveler/master
author
Florian Forster
<ff@octo.it>
Sat, 6 May 2017 05:51:37 +0000
(07:51 +0200)
committer
GitHub
<noreply@github.com>
Sat, 6 May 2017 05:51:37 +0000
(07:51 +0200)
fix BIND timezone parsing issue
src/bind.c
patch
|
blob
|
history
diff --git
a/src/bind.c
b/src/bind.c
index
3876177
..
9d407d1
100644
(file)
--- 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);