X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fworker.php;h=23dfd6e0004ba7cc46ae7189270a856c40776abc;hb=6c341962648b73c935c2de26996b07332b776a1f;hp=00cb6699d1b2a484e57ae0f5729fd1f92868b743;hpb=8821d33f73785884cfce83e7b23d3ef19cc1bc11;p=friendica.git diff --git a/mod/worker.php b/mod/worker.php index 00cb6699d1..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")) { @@ -58,5 +61,5 @@ function worker_init() Logger::log("Front end worker ended: ".getmypid()); - killme(); + exit(); }