# HG changeset patch # User Mikael Berthe # Date 1128024202 -7200 # Node ID 339e85418b49c5f92edc781996ad593360749ab2 # Parent d580e87c11ed35f6cefc151e1ec2cea959a3b19f from_iso8601(): set time to 00:00:00 if not specified diff -r d580e87c11ed -r 339e85418b49 mcabber/src/utils.c --- 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;