summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aabd019)
raw | patch | inline | side by side (parent: aabd019)
author | Sebastian Harl <sh@tokkee.org> | |
Thu, 15 Nov 2012 14:14:10 +0000 (15:14 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 15 Nov 2012 14:14:10 +0000 (15:14 +0100) |
src/utils_time.c | patch | blob | history |
diff --git a/src/utils_time.c b/src/utils_time.c
index f30dc0fa155055786669cc2decd69fb162763054..6789758d4e2460abad4259a6da047550b5903fac 100644 (file)
--- a/src/utils_time.c
+++ b/src/utils_time.c
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 */