Ensure that "strtotime" returns the correct timestamp
This commit is contained in:
parent
5cf5f33a1c
commit
f6e8246e75
2 changed files with 7 additions and 2 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue