2011-03-01 15:49:58 +00:00
|
|
|
diff --git a/parsetime.y b/parsetime.y
|
2011-03-01 16:51:08 +00:00
|
|
|
index ef1ff7f..141d792 100644
|
2011-03-01 15:49:58 +00:00
|
|
|
--- a/parsetime.y
|
|
|
|
+++ b/parsetime.y
|
2011-03-01 16:51:08 +00:00
|
|
|
@@ -379,7 +379,9 @@ parsetime(int argc, char **argv)
|
2011-02-01 10:04:54 +00:00
|
|
|
exectime -= 3600;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
- if (time_only && (currtime > exectime)) {
|
2011-03-01 16:51:08 +00:00
|
|
|
+ /* exectime zeroes its seconds, thus we need +60,
|
|
|
|
+ * else "now" will be scheduled to tomorrow */
|
|
|
|
+ if (currtime > exectime + 60) {
|
2011-02-01 10:04:54 +00:00
|
|
|
exectime += 24*3600;
|
|
|
|
}
|
|
|
|
return exectime;
|