summaryrefslogtreecommitdiff
path: root/i3status.c
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@users.noreply.github.com>2015-03-23 22:12:21 +0100
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2015-03-23 22:12:21 +0100
commitbf223d9b61498a6b1e723bacb007545a696141fe (patch)
tree38d20a2a364328ed7bebd2b5fbc079deba9d624e /i3status.c
parent3f9d4c6d897b44be3971af7229bf07e425d0915f (diff)
parent0a84bcb74aeef2efc2f5ccc1cfc674242f311cd2 (diff)
Merge pull request #12 from Airblader/feature-tztime-instance
Pass the "instance" JSON property key for tztime blocks
Diffstat (limited to 'i3status.c')
-rw-r--r--i3status.c4
1 files changed, 2 insertions, 2 deletions
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;
}