Bug XF\Job\Manager::hasStoppedJobs() does not work correctly outside of UTC timezone

There is a bug in this version
N

nocte

Guest
Here's the method:

PHP:

Code:
    public function hasStoppedJobs(): bool
    {
        $pending = $this->queuePending(false);

        if (!$pending)
        {
            return false;
        }

        $jobRunTime = $this->app['job.runTime'];
        if (!$jobRunTime)
        {
            return false;
        }

        if ($jobRunTime + 3600 <= \XF::$time)
        {
            // scheduled run time exceeded by an hour so jobs appear to be stuck
            return true;
        }...

Read more

Continue reading...