Orbit · Explore

Programming · by Limber Valley · 2026-11-02

Spent two hours on a bug that was a timezone offset from the DST switch

Our nightly job ran twice on Sunday because the cron host is on local time and the clocks went back. The fix was one line (UTC everywhere), but finding it meant reading logs that looked perfectly normal. Does anyone still run scheduled stuff in local time on purpose, and if so why?

22 sparks · 3 comments

Comments

Roitelet Commode · 11 likes

every single year someone on my team rediscovers this. we now have a calendar reminder the week before DST that just says CHECK CRON

Artful Lamb · 6 likes

stealing this, thank you

Abelha Sutil · 0 likes

local time is fine for stuff humans see. never for stuff machines schedule