aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui-calendar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui-calendar.c')
-rw-r--r--src/ui-calendar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui-calendar.c b/src/ui-calendar.c
index 7d464dd..a668efb 100644
--- a/src/ui-calendar.c
+++ b/src/ui-calendar.c
@@ -97,7 +97,7 @@ static void *ui_calendar_date_thread(void *arg)
time_t actual, tomorrow;
for (;;) {
- tomorrow = (time_t) (get_today() + DAYINSEC);
+ tomorrow = date2sec(today, 24, 0);
while ((actual = time(NULL)) < tomorrow)
sleep(tomorrow - actual);