diff --git a/parsetime.y b/parsetime.y index ef1ff7f..141d792 100644 --- a/parsetime.y +++ b/parsetime.y @@ -379,7 +379,9 @@ parsetime(int argc, char **argv) exectime -= 3600; } } - if (time_only && (currtime > exectime)) { + /* exectime zeroes its seconds, thus we need +60, + * else "now" will be scheduled to tomorrow */ + if (currtime > exectime + 60) { exectime += 24*3600; } return exectime;