1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to make XF cron jobs respect Daylight Saving Time

Discussion in 'XenForo Development Discussions' started by ForestForTrees, Mar 26, 2016.

  1. ForestForTrees

    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/
    Can anyone think of a way to adjust the PHP method that the cron calls so that it can compensate for this?
     

Share This Page