Skip to content

Commit

Permalink
Merge pull request #4 from gitig/master
Browse files Browse the repository at this point in the history
Update cronTrigger.js
  • Loading branch information
py8765 committed Jun 5, 2014
2 parents fec5c16 + ef382f6 commit ca24a93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/cronTrigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ pro.nextExcuteTime = function(time){
date.setSeconds(0);
continue;
}
date.setMonth(nextMonth);


date.setDate(1);
date.setMonth(nextMonth);
date.setHours(0);
date.setMinutes(0);
date.setSeconds(0);
Expand All @@ -86,8 +86,8 @@ pro.nextExcuteTime = function(time){

//If the date is in the next month, add month
if(nextDom <= date.getDate() || nextDom > domLimit){
date.setMonth(date.getMonth() + 1);
date.setDate(1);
date.setMonth(date.getMonth() + 1);
date.setHours(0);
date.setMinutes(0);
date.setSeconds(0);
Expand Down

0 comments on commit ca24a93

Please sign in to comment.