mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-25 02:14:11 -05:00
chore(tools): update daily challenge seed script (#61721)
This commit is contained in:
@@ -18,14 +18,14 @@ const EXPECTED_CHALLENGE_COUNT = 24;
|
||||
// Date to set for the first challenge, second challenge will be one day later, etc...
|
||||
// **DO NOT CHANGE THIS AFTER RELEASE (if seeding production - okay for local dev)**
|
||||
const year = 2025;
|
||||
const monthIndex = 6; // 0-indexed -> 5 = June
|
||||
const day = 15;
|
||||
const monthIndex = 7; // 0-indexed -> 5 = June
|
||||
const day = 11;
|
||||
const START_DATE = new Date(Date.UTC(year, monthIndex, day));
|
||||
const ONE_DAY_IN_MS = 24 * 60 * 60 * 1000;
|
||||
|
||||
// Sanity check to make sure the start date hasn't unintentionally changed
|
||||
// **IT SHOULD NOT CHANGE AFTER RELEASE**
|
||||
const startDateString = '2025-07-15T00:00:00.000Z';
|
||||
const startDateString = '2025-08-11T00:00:00.000Z';
|
||||
if (START_DATE.toISOString() !== startDateString) {
|
||||
throw new Error(
|
||||
`It appears the start date has changed from "${startDateString}".
|
||||
|
||||
Reference in New Issue
Block a user