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);