From 0a84bcb74aeef2efc2f5ccc1cfc674242f311cd2 Mon Sep 17 00:00:00 2001 From: Ingo Bürk Date: Mon, 23 Mar 2015 21:42:52 +0100 Subject: Pass the "instance" JSON property key for tztime blocks fixes #10 --- i3status.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'i3status.c') diff --git a/i3status.c b/i3status.c index 8749933..bc8f35f 100644 --- a/i3status.c +++ b/i3status.c @@ -627,13 +627,13 @@ int main(int argc, char *argv[]) { CASE_SEC("time") { SEC_OPEN_MAP("time"); - print_time(json_gen, buffer, cfg_getstr(sec, "format"), NULL, tv.tv_sec); + print_time(json_gen, buffer, NULL, cfg_getstr(sec, "format"), NULL, tv.tv_sec); SEC_CLOSE_MAP; } CASE_SEC_TITLE("tztime") { SEC_OPEN_MAP("tztime"); - print_time(json_gen, buffer, cfg_getstr(sec, "format"), cfg_getstr(sec, "timezone"), tv.tv_sec); + print_time(json_gen, buffer, title, cfg_getstr(sec, "format"), cfg_getstr(sec, "timezone"), tv.tv_sec); SEC_CLOSE_MAP; } -- cgit v1.2.3