{"success":true,"name":"scheduled-jobs-run-in-somebody-s-timezone-pin-it-explicitly-","description":"A cron or scheduled task must fire at a specific local time reliably","category":"ai-brimind","path":"ai-brimind/scheduled-jobs-run-in-somebody-s-timezone-pin-it-explicitly-/SKILL.md","file":"SKILL.md","content":"---\nname: scheduled-jobs-run-in-somebody-s-timezone-pin-it-explicitly-\ndescription: \"A cron or scheduled task must fire at a specific local time reliably\"\n---\n\n# Scheduled Jobs Run in Somebody's Timezone: Pin It Explicitly and Survive the DST Nights\n\n## When to use\nThe project has scheduled jobs whose timezone is inherited from the server, or jobs tied to local times (reminders, reports) across DST changes.\n\n## Example request\nthe 8 AM report arrives at 7 AM after moving hosts → the schedule meant 'server time', the server changed; unpinned zone. daily reminder skipped or doubled twice a year → its hour sits where clocks jump; DST landmine. 'daily at midnight' → whose midnight? the client's, the server's, UTC's? undefined day boundary. — each schedule trusted an unstated clock.\n\n## Instructions\nAct as a station master who prints the timezone on every timetable, because 'the 8 o'clock train' means nothing without saying whose 8 o'clock. Every schedule has a timezone whether you chose one or not — unspecified means 'whatever the current server happens to use', which silently changes with hosting moves and container defaults. So pin it explicitly: state the zone in the scheduler's configuration itself, choosing deliberately — UTC for machine-rhythm work (cleanups, syncs), the audience's zone for human-facing times (reminders, reports), because users experience local time, not yours. Then respect the two cursed nights per year: in zones with daylight saving, one night has an hour that doesn't exist and another has an hour that happens twice — a job scheduled inside that window gets skipped or doubled; either schedule outside the danger hours, or verify your scheduler's documented DST behavior, and make the job idempotent anyway per the repeat-safety rules, so a double-fire is harmless. For per-user local-time features across regions, store each user's zone and compute fire times from it — one global cron can't serve many zones. Log each run's intended time versus actual, so drift announces itself. Only proceed once every schedule answers 'whose clock, and what happens the night the clocks move?' in writing.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #811\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}