summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/eina/eina_value.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eina/eina_value.c b/src/lib/eina/eina_value.c
index d6446cca57..3e7ee3f725 100644
--- a/src/lib/eina/eina_value.c
+++ b/src/lib/eina/eina_value.c
@@ -3557,7 +3557,8 @@ _eina_value_type_timeval_convert_to(const Eina_Value_Type *type EINA_UNUSED, con
3557 { 3557 {
3558 const char *other_mem; 3558 const char *other_mem;
3559 char buf[64]; 3559 char buf[64];
3560 snprintf(buf, sizeof(buf), "%ld.%06ld", v.tv_sec, v.tv_usec); 3560 strftime
3561 (buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", localtime(&(v.tv_sec)));
3561 other_mem = buf; /* required due &buf == buf */ 3562 other_mem = buf; /* required due &buf == buf */
3562 return eina_value_type_pset(convert, convert_mem, &other_mem); 3563 return eina_value_type_pset(convert, convert_mem, &other_mem);
3563 } 3564 }