]> git.mxchange.org Git - friendica.git/blobdiff - mod/worker.php
Merge pull request #7893 from annando/api-attachments
[friendica.git] / mod / worker.php
index 2995775db1b18e05a12ad099994d838f96e3ae75..23dfd6e0004ba7cc46ae7189270a856c40776abc 100644 (file)
@@ -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,9 +41,7 @@ function worker_init()
 
        Worker::callWorker();
 
-       $passing_slow = false;
-
-       if ($r = Worker::workerProcess($passing_slow)) {
+       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);