X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fworker.php;h=23dfd6e0004ba7cc46ae7189270a856c40776abc;hb=5f2028b657332c7dceb1e14dc0e1cd175fc61a7c;hp=af778f8d64c6daa3af518cd6dd0816851933e5a4;hpb=b6e2c254fbad22c8c2da872768b14d7cd9b0b043;p=friendica.git diff --git a/mod/worker.php b/mod/worker.php index af778f8d64..23dfd6e000 100644 --- a/mod/worker.php +++ b/mod/worker.php @@ -17,6 +17,9 @@ function worker_init() return; } + // Ensure that all "strtotime" operations do run timezone independent + date_default_timezone_set('UTC'); + // We don't need the following lines if we can execute background jobs. // So we just wake up the worker if it sleeps. if (function_exists("proc_open")) { @@ -38,11 +41,7 @@ function worker_init() Worker::callWorker(); - $passing_slow = false; - $entries = 0; - $deferred = 0; - - if ($r = Worker::workerProcess($passing_slow, $entries, $deferred)) { + if ($r = Worker::workerProcess()) { // On most configurations this parameter wouldn't have any effect. // But since it doesn't destroy anything, we just try to get more execution time in any way. set_time_limit(0);