From 30295926b9f34fa08a2c0ae6d68c2eade5ed8ec8 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 11 Jun 2012 19:52:46 -0700 Subject: make sure default timezone is set in external processes --- boot.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'boot.php') 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(); -- cgit v1.2.3