Mercurial > hg
changeset 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 | d580e87c11ed |
children | e4840b288be0 |
files | mcabber/src/utils.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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;