From 3451a0d9fc81c69d4dcaf93b511459b164df05e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Gro=C3=9Fe=20Sundrup?= Date: Mon, 31 Aug 2020 08:30:59 +0200 Subject: [PATCH] Allow selective pango-markup in tztime-module (#430) Closes #421 --- src/print_time.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/print_time.c b/src/print_time.c index eede31d9..f7f77f04 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[] = {