projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
276d10c
)
elm test: calender - use eina_strbuf_append_strftime instead
author
Amitesh Singh
<amitesh.sh@samsung.com>
Tue, 31 Oct 2017 05:26:55 +0000
(14:26 +0900)
committer
Amitesh Singh
<amitesh.sh@samsung.com>
Tue, 31 Oct 2017 05:27:27 +0000
(14:27 +0900)
src/bin/elementary/test_calendar.c
patch
|
blob
|
history
diff --git
a/src/bin/elementary/test_calendar.c
b/src/bin/elementary/test_calendar.c
index
23d4b09
..
dbcf946
100644
(file)
--- a/
src/bin/elementary/test_calendar.c
+++ b/
src/bin/elementary/test_calendar.c
@@
-407,14
+407,12
@@
_cal_changed_cb(void *data EINA_UNUSED, const Efl_Event *ev)
static void
_cal_format_cb(void *data EINA_UNUSED, Eina_Strbuf *str, const Eina_Value value)
{
- char buf[128];
struct tm current_time;
if (eina_value_type_get(&value) == EINA_VALUE_TYPE_TM)
{
eina_value_get(&value, ¤t_time);
- strftime(buf, sizeof(buf), "%b %y", ¤t_time);
- eina_strbuf_append_printf(str, "<< %s >>", buf);
+ eina_strbuf_append_strftime(str, "<< %b %y >>", ¤t_time);
}
}