File at-3.1.13-tomorrow.patch of Package at

Index: at-3.1.13/parsetime.y
===================================================================
--- at-3.1.13.orig/parsetime.y
+++ at-3.1.13/parsetime.y
@@ -504,10 +504,15 @@ parsetime(time_t currtime, int argc, cha
 	if (isgmt) {
 	    exectime -= timezone;
 	    if (currtm.tm_isdst && !exectm.tm_isdst)
 		exectime -= 3600;
 	}
+	/* exectime zeroes its seconds, thus we need +60,
+	 * else "now" will be scheduled to tomorrow */
+	if (currtime > exectime + 60) {
+	    exectime += 24*3600;
+	}
 	if (exectime < currtime)
 		panic("refusing to create job destined in the past");
         return exectime;
     }
     else {
openSUSE Build Service is sponsored by