Skip to content

Commit

Permalink
Merge pull request #62 from earldouglas/time
Browse files Browse the repository at this point in the history
fixed stupid bug in @time
  • Loading branch information
FreddieSanchez committed Jul 17, 2015
2 parents fb91f53 + e665bdb commit 9635b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/time.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function next_end_work_day(d) {
end.setMinutes(0);

//after 5pm or it's saturday or sunday, find the next workday.
if (now.getHours() >= 17 || [6,0].indexOf(now.getDay()) !== 1 ) {
if (now.getHours() >= 17 || [6,0].indexOf(now.getDay()) !== -1 ) {
var daystillMonday = (8 - now.getDay()) % 7;
end = new Date( end.getTime() + (daystillMonday * 24 * 60 * 60 * 1000));
}
Expand Down

0 comments on commit 9635b7d

Please sign in to comment.