forked from enlightenment/enlightenment
Add support for the ISO 8601 date format to the clock module
Reviewers: zmike Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3129
This commit is contained in:
parent
2a3742a52a
commit
872c3d2601
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue