From ac45c8cb65ace3e820a8b51508d9934d45bd9141 Mon Sep 17 00:00:00 2001 From: ketrptr Date: Mon, 16 Dec 2024 11:22:15 +0100 Subject: [PATCH] modified: src/ui.c --- src/ui.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui.c b/src/ui.c index 56658bc..c68b521 100644 --- a/src/ui.c +++ b/src/ui.c @@ -99,6 +99,7 @@ int main(void) { // if list exists use it to generate plan if (listT != NULL) { struct tm lc; + now = time(NULL); localtime_r(&now, &lc); lc.tm_hour += taskspare; time_t avail = mktime(&lc);