Unverified Commit 5fb9248f authored by Massimiliano Pippi's avatar Massimiliano Pippi Committed by GitHub

get timestamp of now (#413)

parent ac85e06f
......@@ -29,7 +29,7 @@ jobs:
let elapsedDays = 15
let elapsed = elapsedDays * 24 * 60 * 60 * 1000;
let now = new Date();
let now = new Date().getTime();
for (const issue of issues) {
// If an issue was active in the past 15 days, leave it alone.
if (now - new Date(issue.updated_at).getTime() < elapsedDays) {
......@@ -91,7 +91,7 @@ jobs:
let elapsedDays = 30;
let elapsed = elapsedDays * 24 * 60 * 60 * 1000;
let now = new Date();
let now = new Date().getTime();
for (const issue of issues) {
// If an issue was stale for less than elapsed time, leave it alone.
if (now - new Date(issue.updated_at).getTime() < elapsed) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment