How to make XF cron jobs respect Daylight Saving Time

ForestForTrees

Well-known member
Hello,

Cron jobs seem to be run on UTC rather than local time. This isn't an issue for most people, but for people like me, who have cron jobs that have publicly visible effects, this is a problem. For example, my site uses a cron job to make a chat room visible at a specific time every week. I forgot to adjust the cron job last week and all of our visitors got a "permission denied" error. :(

This issue also affects anyone who uses the following:
https://xenforo.com/community/resources/board-active-cron.3997/
The Cron Entries will need to be adjusted twice a year if your server is in a timezone that uses daylight savings time.

Can anyone think of a way to adjust the PHP method that the cron calls so that it can compensate for this?
 
Top Bottom