summaryrefslogtreecommitdiff
path: root/i3status.c
diff options
context:
space:
mode:
authoreplanet <emeric.planet@gmail.com>2018-11-15 22:27:23 +0100
committereplanet <emeric.planet@gmail.com>2018-11-15 22:27:23 +0100
commit1b7501b7ea561404b2dd27297a4ccd7432db46f4 (patch)
treeb60d4c797e305fabd2213f93b244567e37e2beef /i3status.c
parentac6c2a7d46603202be3a4f4d677f0be274d15e23 (diff)
Corrections according to PR review
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 ea29a35..36789f4 100644
--- a/i3status.c
+++ b/i3status.c
@@ -399,7 +399,7 @@ int main(int argc, char *argv[]) {
CFG_STR("timezone", "", CFGF_NONE),
CFG_STR("locale", "", CFGF_NONE),
CFG_STR("format_time", NULL, CFGF_NONE),
- CFG_BOOL("only_when_tz_different", false, CFGF_NONE),
+ CFG_BOOL("hide_if_equals_localtime", false, CFGF_NONE),
CFG_CUSTOM_ALIGN_OPT,
CFG_CUSTOM_MIN_WIDTH_OPT,
CFG_CUSTOM_SEPARATOR_OPT,
@@ -756,7 +756,7 @@ int main(int argc, char *argv[]) {
CASE_SEC_TITLE("tztime") {
SEC_OPEN_MAP("tztime");
- print_time(json_gen, buffer, title, cfg_getstr(sec, "format"), cfg_getstr(sec, "timezone"), cfg_getstr(sec, "locale"), cfg_getstr(sec, "format_time"), cfg_getbool(sec, "only_when_tz_different"), tv.tv_sec);
+ print_time(json_gen, buffer, title, cfg_getstr(sec, "format"), cfg_getstr(sec, "timezone"), cfg_getstr(sec, "locale"), cfg_getstr(sec, "format_time"), cfg_getbool(sec, "hide_if_equals_localtime"), tv.tv_sec);
SEC_CLOSE_MAP;
}