Launch
Run weekly launches on ISO weeks, with emails that match the clock
One timezone, Monday–Sunday weeks, and reminders that fire at the right local time.
Prompt
Make the weekly launch schedule in this app consistent. 1. Find every place that computes "this week", launch dates, voting windows or countdowns. Centralise them in one module. 2. Use ISO 8601 weeks (Monday start, week 1 contains the first Thursday) in a single declared timezone. Store instants in UTC; convert only for display. 3. Make sure the countdown, the leaderboard cut-off, scheduled publishing and any emails all use that same module. 4. Scheduled jobs (publish at week start, results at week end, reminder emails) must be idempotent so a retry never double-sends. 5. Add tests for the edges: year boundaries (week 1 / week 52–53), daylight-saving changes for users in other timezones, and the exact cut-off second. Work in small steps. Before changing anything, read the relevant code and tell me your plan in a few bullet points. Don't add new dependencies unless you explain why. When you're done, list every file you changed and how I can verify the result.
Best used in a coding agent with access to your repository: paste it into Claude Code, Cursor, Codex or Copilot chat.