Hacker News new | ask | show | jobs
by edoceo 29 days ago
The jobs need to run at midnight, local time. Which shifts from UTC. How to handle?
2 comments

Why does it need to run at that time?

* If it's being run to scrap data from a source that's available at some time, adjust the job if the source changes its time.

* If it's being run "when its dark and no one is around" then it'll run at some part of the dark bit regardless of DST changes.

Sometimes you minimize downtime by running something while some other system you don’t control is down.
Billing and regulatory compliance
In that specific case, handle the job time by making it compliant.

The reason I posed a leading rhetorical question was that not all cron jobs are equal and how each is handled depends on the nature of each.

Use UTC, and stop faffing about with changing localtime twice every year so the offset is a constant?