From e9c8197e4ed1f516c41f803b9aa79bcfe7c7a7ab Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 5 Feb 2016 09:15:01 +0100 Subject: Refactor grep mode Split io_save_{apts,todo}() into functions that write raw data to a file and functions that write formatted items to stdout such that one can easily extend the grep mode for format string support in a follow-up commit. Signed-off-by: Lukas Fleischer --- src/utils.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index b1ef630..a5e1196 100644 --- a/src/utils.c +++ b/src/utils.c @@ -485,6 +485,7 @@ long update_time_in_date(long date, unsigned hr, unsigned mn) localtime_r(&t, <); lt.tm_hour = hr; lt.tm_min = mn; + lt.tm_sec = 0; new_date = mktime(<); EXIT_IF(new_date == -1, _("error in mktime")); -- cgit v1.2.3-54-g00ecf