Permalink
Browse files

set seconds to 0

  • Loading branch information...
1 parent cc02015 commit ca0267c317a98ab3218535dc06b53bb47d0b0c06 @crcn crcn committed Sep 8, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/cron.js
View
@@ -75,6 +75,7 @@ CronTime.prototype = {
}
if (!(date.getMinutes() in this.minute)) {
date.setMinutes(date.getMinutes()+1);
+ date.setSeconds(0);
continue;
}
@@ -260,6 +261,11 @@ exports.timeout = function(cronTime)
return new CronTime(cronTime).timeout();
}
+console.log(new Date());
+var sendAt = exports.sendAt('01 30 11 * * *');
+
+console.log(sendAt);
+
exports.CronJob = CronJob;
exports.CronTime = CronTime;

0 comments on commit ca0267c

Please sign in to comment.