summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2017-10-31 14:26:55 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2017-10-31 14:27:27 +0900
commit02206f252f51abd11ae60c61bb400401a909b605 (patch)
tree0cbe7a1cfc84b1449cffde6da9f8bd6411f5c7fd /src
parent276d10c7bbea7c0b649d4cca706b80acb4c1580a (diff)
elm test: calender - use eina_strbuf_append_strftime instead
Diffstat (limited to 'src')
-rw-r--r--src/bin/elementary/test_calendar.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bin/elementary/test_calendar.c b/src/bin/elementary/test_calendar.c
index 23d4b092b1..dbcf9463ad 100644
--- 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)
407static void 407static void
408_cal_format_cb(void *data EINA_UNUSED, Eina_Strbuf *str, const Eina_Value value) 408_cal_format_cb(void *data EINA_UNUSED, Eina_Strbuf *str, const Eina_Value value)
409{ 409{
410 char buf[128];
411 struct tm current_time; 410 struct tm current_time;
412 411
413 if (eina_value_type_get(&value) == EINA_VALUE_TYPE_TM) 412 if (eina_value_type_get(&value) == EINA_VALUE_TYPE_TM)
414 { 413 {
415 eina_value_get(&value, &current_time); 414 eina_value_get(&value, &current_time);
416 strftime(buf, sizeof(buf), "%b %y", &current_time); 415 eina_strbuf_append_strftime(str, "<< %b %y >>", &current_time);
417 eina_strbuf_append_printf(str, "<< %s >>", buf);
418 } 416 }
419} 417}
420 418