The startDateTime default in the Missions collection and the weekly generate-mission bin both forced the date at least a week out by adding 7 days to the offset to the next Saturday. Generated midweek that landed on the Saturday AFTER the coming one (a Tuesday generation went 11 days out instead of 4), which also pushed the bot's roll-call (posted within 3 days of start) days into the future and read as a missing roll-call. Add nextSaturdayStart() to the unit-timezone date helpers: the nearest upcoming Saturday at 20:00 America/New_York, rolling a week only once today's 20:00 has passed. Use it for the collection default and the generator, derive the generator codeName datestamp in unit time, and cover the boundary cases in tests/int/next-saturday-start.int.spec.ts. |
||
|---|---|---|
| .. | ||
| lib | ||
| AGENTS.md | ||
| baseTick.ts | ||
| bumpVersion.ts | ||
| economyTick.ts | ||
| gameTick.ts | ||
| generateNextMission.ts | ||
| generateVersionInfo.ts | ||
| marketTick.ts | ||
| missionTick.ts | ||
| run-migrations.ts | ||
| serverTick.ts | ||