commit 3fc500b373489fe0851b7f23be0bc75f7a60e3a7
parent df3a8e87945eb15e431d1d2e8656b76ea10a26de
Author: Andreas Gruhler <agruhl@gmx.ch>
Date: Sat, 25 Dec 2021 17:07:35 +0100
fix(import): reset cal_start sec/min/h
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/diary.c b/src/diary.c
@@ -17,6 +17,10 @@ void setup_cal_timeframe() {
localtime_r(&raw_time, &today);
curs_date = today;
+ today.tm_sec = 0;
+ today.tm_min = 0;
+ today.tm_hour = 0;
+
cal_start = today;
cal_start.tm_year -= CONFIG.range;
cal_start.tm_mon = 0;