summary refs log tree commit diff
path: root/snooze.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-08-29 17:41:44 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-08-29 17:41:44 +0200
commit0f5eae045db3c1c146ebdf62eac77a10c2255baf (patch)
treed60768f993024bc99f29f2a5cf970e7e849021cf /snooze.c
parent45f989ee6cd90529dc49a3715fb76b7feb934b01 (diff)
downloadsnooze-0f5eae045db3c1c146ebdf62eac77a10c2255baf.tar.gz
snooze-0f5eae045db3c1c146ebdf62eac77a10c2255baf.tar.xz
snooze-0f5eae045db3c1c146ebdf62eac77a10c2255baf.zip
find_next: take leap year into account (e.g. when using dayofyear)
Diffstat (limited to 'snooze.c')
-rw-r--r--snooze.c2
1 files changed, 1 insertions, 1 deletions
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;
 	}