Skip to content

Commit

Permalink
Update contributors-data.js
Browse files Browse the repository at this point in the history
  • Loading branch information
t-will-gillis authored Nov 27, 2023
1 parent 1678930 commit f87160a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ const team = 'website-write';
// Since the website team takes off the month of December, the January 1st run is skipped (via `schedule-monthly.yml`).
// The February 1st run keeps the 1 month inactive warning, but changes removal to 3 months inactive (skipping December).
let today = new Date();
let twoMonths = (today.getMonth() == 1) ? 6 : 5.5; // If month is "February" == 1, then twoMonths = 3 months ago
let twoMonths = (today.getMonth() == 1) ? 6 : 5; // If month is "February" == 1, then twoMonths = 3 months ago

let oneMonthAgo = new Date(); // oneMonthAgo instantiated with date of "today"
oneMonthAgo.setMonth(oneMonthAgo.getMonth() - 4.5); // then set oneMonthAgo from "today"
oneMonthAgo.setMonth(oneMonthAgo.getMonth() - 4); // then set oneMonthAgo from "today"
oneMonthAgo = oneMonthAgo.toISOString();
let twoMonthsAgo = new Date(); // twoMonthsAgo instantiated with date of "today"
twoMonthsAgo.setMonth(twoMonthsAgo.getMonth() - twoMonths); // then set twoMonthsAgo from "today"
Expand Down

0 comments on commit f87160a

Please sign in to comment.