aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-11 19:52:46 -0700
committerfriendica <info@friendica.com>2012-06-11 19:52:46 -0700
commit30295926b9f34fa08a2c0ae6d68c2eade5ed8ec8 (patch)
treec63d2b4706025c2d730f0e052cf23dcd2d6047ea /boot.php
parent24e85c95b66dac2bd046ebec5c90bb7f2e2de0b8 (diff)
downloadvolse-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.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 0ae0901d2..dfe072578 100644
--- a/boot.php
+++ b/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();