From 872c3d26013d5fa4c5a496bec5bea9721270d13b Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Sun, 4 Oct 2015 12:56:46 -0400 Subject: [PATCH] Add support for the ISO 8601 date format to the clock module Reviewers: zmike Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3129 --- src/modules/clock/e_mod_config.c | 2 ++ src/modules/clock/e_mod_main.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/modules/clock/e_mod_config.c b/src/modules/clock/e_mod_config.c index 2afcaa6d7..efa48486f 100644 --- a/src/modules/clock/e_mod_config.c +++ b/src/modules/clock/e_mod_config.c @@ -108,6 +108,8 @@ _basic_create_widgets(E_Config_Dialog *cfd EINA_UNUSED, e_widget_frametable_object_append(of, ob, 0, 2, 1, 1, 1, 1, 0, 0); ob = e_widget_radio_add(evas, _("Date Only"), 3, rg); e_widget_frametable_object_append(of, ob, 0, 3, 1, 1, 1, 1, 0, 0); + ob = e_widget_radio_add(evas, _("ISO 8601"), 4, rg); + e_widget_frametable_object_append(of, ob, 0, 4, 1, 1, 1, 1, 0, 0); e_widget_table_object_append(tab, of, 0, 1, 1, 1, 1, 1, 1, 1); diff --git a/src/modules/clock/e_mod_main.c b/src/modules/clock/e_mod_main.c index e8812db4c..37ce0486d 100644 --- a/src/modules/clock/e_mod_main.c +++ b/src/modules/clock/e_mod_main.c @@ -98,6 +98,8 @@ _todaystr_eval(Instance *inst, char *buf, int bufsz) strftime(buf, bufsz, _("%a, %x"), (const struct tm *)tm); else if (inst->cfg->show_date == 3) strftime(buf, bufsz, "%x", (const struct tm *)tm); + else if (inst->cfg->show_date == 4) + strftime(buf, bufsz, "%F", (const struct tm *)tm); } else buf[0] = 0;