summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Große Sundrup <cherti@letopolis.de>2020-08-31 08:30:59 +0200
committerGitHub <noreply@github.com>2020-08-31 08:30:59 +0200
commit3451a0d9fc81c69d4dcaf93b511459b164df05e8 (patch)
tree8dd6def06afbf83bfa6d75786a54d5ac72f77864
parenta3a37da11e4b7aad293eda645761f342e5eafc3b (diff)
Allow selective pango-markup in tztime-module (#430)
Closes #421
-rw-r--r--src/print_time.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/print_time.c b/src/print_time.c
index eede31d..f7f77f0 100644
--- a/src/print_time.c
+++ b/src/print_time.c
@@ -64,8 +64,7 @@ void print_time(yajl_gen json_gen, char *buffer, const char *title, const char *
char string_time[STRING_SIZE];
if (format_time == NULL) {
- strftime(string_time, sizeof(string_time), format, &tm);
- maybe_escape_markup(string_time, &outwalk);
+ outwalk += strftime(buffer, 4096, format, &tm);
} else {
strftime(string_time, sizeof(string_time), format_time, &tm);
placeholder_t placeholders[] = {