projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iptables plugin: remove dead code
[collectd.git]
/
src
/
utils_time.c
diff --git
a/src/utils_time.c
b/src/utils_time.c
index
f30dc0f
..
6789758
100644
(file)
--- a/
src/utils_time.c
+++ b/
src/utils_time.c
@@
-87,6
+87,11
@@
size_t cdtime_to_iso8601 (char *s, size_t max, cdtime_t t) /* {{{ */
len += (n < max - len) ? n : max - len;
}
+ if (max - len > 3) {
+ int n = strftime (s + len, max - len, "%z", &t_tm);
+ len += (n < max - len) ? n : max - len;
+ }
+
s[max - 1] = '\0';
return len;
} /* }}} size_t cdtime_to_iso8601 */