diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-08-29 17:41:44 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-08-29 17:41:44 +0200 |
commit | 0f5eae045db3c1c146ebdf62eac77a10c2255baf (patch) | |
tree | d60768f993024bc99f29f2a5cf970e7e849021cf | |
parent | 45f989ee6cd90529dc49a3715fb76b7feb934b01 (diff) | |
download | snooze-0f5eae045db3c1c146ebdf62eac77a10c2255baf.tar.gz snooze-0f5eae045db3c1c146ebdf62eac77a10c2255baf.tar.xz snooze-0f5eae045db3c1c146ebdf62eac77a10c2255baf.zip |
find_next: take leap year into account (e.g. when using dayofyear)
-rw-r--r-- | snooze.c | 2 |
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; } |