From 0f5eae045db3c1c146ebdf62eac77a10c2255baf Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 29 Aug 2017 17:41:44 +0200 Subject: find_next: take leap year into account (e.g. when using dayofyear) --- snooze.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snooze.c b/snooze.c index b29c7b6..f37c42a 100644 --- a/snooze.c +++ b/snooze.c @@ -185,7 +185,7 @@ next_day: tm->tm_hour = 0; t = mktime(tm); - if (t > from+(365*24*60*60)) // no result within a year + if (t > from+(366*24*60*60)) // no result within a year return -1; } -- cgit v1.2.3