News for hackers. Stuff that matters.
Re:How Debian cron handles DST transitions by PetahNZ on Wednesday October 27, 2021 @05:16PM (#29019249)
Set the cron job to run every hour in UTC, and your application logic checks if its time to open in the configured time zone.
Re:How Debian cron handles DST transitions by kymaz on Wednesday October 27, 2021 @05:36PM (#29019436)
So the fix to using UTC for computers and crons that only care about the local time zone is to reimplement time checking?

If youre just gonna run it every hour, you might as well while(1){ check time; do stuff; sleep 1 hour;} now there's one less dependency?

Re:How Debian cron handles DST transitions by rovr138 on Wednesday October 27, 2021 @05:43PM (#29019494)
It depends on that never dying.
Re:How Debian cron handles DST transitions by kymaz on Wednesday October 27, 2021 @07:00PM (#29020086)
You also depend on cron never having a bug, and you also depend on crons working as intended, unless you also have some extra system logging your cron jobs.
Re:How Debian cron handles DST transitions by dbaupp on Wednesday October 27, 2021 @05:41PM (#29019479)
Unfortunately there’s more … interesting time zones than UTC+/-xx:00, and more interesting transitions than moving an hour.

For instance, Nepal uses UTC+05:45, and the time shifted by 15 minutes in 1986 (from UTC+05:30): https://www.timeanddate.com/time/zone/nepal/kathmandu

That said, I think running every 15 minutes handles all currently-observed time zones.