diff mcabber/src/utils.c @ 463:339e85418b49

from_iso8601(): set time to 00:00:00 if not specified
author Mikael Berthe <mikael@lilotux.net>
date Thu, 29 Sep 2005 22:03:22 +0200
parents 471c9ccde028
children 05c0e55c4bb1
line wrap: on
line diff
--- a/mcabber/src/utils.c	Thu Sep 29 21:28:39 2005 +0200
+++ b/mcabber/src/utils.c	Thu Sep 29 22:03:22 2005 +0200
@@ -178,6 +178,9 @@
   time(&retval);
   localtime_r(&retval, &t);
 
+  /* Reset time to midnight (00:00:00) */
+  t.tm_hour = t.tm_min = t.tm_sec = 0;
+
   snprintf(buf, sizeof(buf), "%s", timestamp);
   c = buf;