diff options
author | friendica <info@friendica.com> | 2012-06-11 19:52:46 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-06-11 19:52:46 -0700 |
commit | 30295926b9f34fa08a2c0ae6d68c2eade5ed8ec8 (patch) | |
tree | c63d2b4706025c2d730f0e052cf23dcd2d6047ea /boot.php | |
parent | 24e85c95b66dac2bd046ebec5c90bb7f2e2de0b8 (diff) | |
download | volse-hubzilla-30295926b9f34fa08a2c0ae6d68c2eade5ed8ec8.tar.gz volse-hubzilla-30295926b9f34fa08a2c0ae6d68c2eade5ed8ec8.tar.bz2 volse-hubzilla-30295926b9f34fa08a2c0ae6d68c2eade5ed8ec8.zip |
make sure default timezone is set in external processes
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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(); |