summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Lima Chaves <glima@profusion.mobi>2012-11-12 12:26:07 +0000
committerGustavo Lima Chaves <glima@profusion.mobi>2012-11-12 12:26:07 +0000
commita4b2a48dc060352db8362baa143747c955765a7f (patch)
treecc7fecc212e20f94e536c235eea89394179510e8
parent43eb9749ab7f816e2dafd9094d1d035bc921d00b (diff)
[eina] Better pretty printing of eina_value timeval buddies.
SVN revision: 79154
-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 }