make sure default timezone is set in external processes
This commit is contained in:
parent
24e85c95b6
commit
30295926b9
3 changed files with 9 additions and 9 deletions
7
boot.php
7
boot.php
|
|
@ -4,6 +4,7 @@ require_once('include/config.php');
|
|||
require_once('include/network.php');
|
||||
require_once('include/plugin.php');
|
||||
require_once('include/text.php');
|
||||
require_once('include/datetime.php');
|
||||
require_once('include/pgettext.php');
|
||||
require_once('include/nav.php');
|
||||
require_once('include/cache.php');
|
||||
|
|
@ -333,6 +334,12 @@ if(! class_exists('App')) {
|
|||
|
||||
function __construct() {
|
||||
|
||||
global $default_timezone;
|
||||
|
||||
$this->timezone = ((x($default_timezone)) ? $default_timezone : 'UTC');
|
||||
|
||||
date_default_timezone_set($this->timezone);
|
||||
|
||||
$this->config = array();
|
||||
$this->page = array();
|
||||
$this->pager= array();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue