discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=872c3d26013d5fa4c5a496bec5bea9721270d13b

commit 872c3d26013d5fa4c5a496bec5bea9721270d13b
Author: Peter Kjellerstedt <p...@axis.com>
Date:   Sun Oct 4 12:56:46 2015 -0400

    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 2afcaa6..efa4848 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 e8812db..37ce048 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;

-- 


Reply via email to