Skip to content

Commit

Permalink
Fix days
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny McCormick committed Aug 19, 2019
1 parent 06922c1 commit 48efd1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function isLabeledStale(issue, label) {
return issue.labels.filter(labelComparer).length > 0;
}
function wasLastUpdatedBefore(issue, num_days) {
const daysInMillis = 1000 * 60 * 60 * num_days;
const daysInMillis = 1000 * 60 * 60 * 24 * num_days;
const millisSinceLastUpdated = new Date().getTime() - new Date(issue.updated_at).getTime();
return millisSinceLastUpdated >= daysInMillis;
}
Expand Down

0 comments on commit 48efd1a

Please sign in to comment.