modified: src/ui.c

bugfix
ketrptr 2024-12-16 11:22:15 +01:00
parent d794d1c59c
commit ac45c8cb65
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ int main(void) {
// if list exists use it to generate plan // if list exists use it to generate plan
if (listT != NULL) { if (listT != NULL) {
struct tm lc; struct tm lc;
now = time(NULL);
localtime_r(&now, &lc); localtime_r(&now, &lc);
lc.tm_hour += taskspare; lc.tm_hour += taskspare;
time_t avail = mktime(&lc); time_t avail = mktime(&lc);