summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2017-11-14 10:51:03 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2017-11-14 10:54:41 +0900
commit302cc259ff27c7a912f8335b1910edfe39ae30ec (patch)
tree247bbd84720850a71f5f045f99a11e0ed2995993 /src
parent20a0d8c26eac9ceaa594e384885cf2df7d347e17 (diff)
Efl.Ui.Format: Add support for "struct tm" in string format.
Diffstat (limited to '')
-rw-r--r--src/lib/efl/interfaces/efl_ui_format.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/efl/interfaces/efl_ui_format.c b/src/lib/efl/interfaces/efl_ui_format.c
index c0dd9d6b42..b55cda074d 100644
--- a/src/lib/efl/interfaces/efl_ui_format.c
+++ b/src/lib/efl/interfaces/efl_ui_format.c
@@ -24,7 +24,12 @@ _default_format_cb(void *data, Eina_Strbuf *str, const Eina_Value value)
24 eina_value_get(&value, &v); 24 eina_value_get(&value, &v);
25 eina_strbuf_append_printf(str, sd->template, v); 25 eina_strbuf_append_printf(str, sd->template, v);
26 } 26 }
27 //XXX: handle other types e.g. struct tm 27 else if (type == EINA_VALUE_TYPE_TM)
28 {
29 struct tm v;
30 eina_value_get(&value, &v);
31 eina_strbuf_append_strftime(str, sd->template, &v);
32 }
28 else 33 else
29 { 34 {
30 char *v = eina_value_to_string(&value); 35 char *v = eina_value_to_string(&value);