aboutsummaryrefslogtreecommitdiffstats
path: root/include/cli_startup.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-29 23:36:41 -0700
committerfriendica <info@friendica.com>2014-09-29 23:36:41 -0700
commitf8468b4c3aeeb51f485c6bb7107f5b64a9643c85 (patch)
tree9665491010508ed70be7fc9e1b8fca0b7e5227f5 /include/cli_startup.php
parent5292e3a100dd8da20865167e59f859a528676df7 (diff)
downloadvolse-hubzilla-f8468b4c3aeeb51f485c6bb7107f5b64a9643c85.tar.gz
volse-hubzilla-f8468b4c3aeeb51f485c6bb7107f5b64a9643c85.tar.bz2
volse-hubzilla-f8468b4c3aeeb51f485c6bb7107f5b64a9643c85.zip
allow custom role permissions and fix site timezone.
Diffstat (limited to 'include/cli_startup.php')
-rw-r--r--include/cli_startup.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/cli_startup.php b/include/cli_startup.php
index 6bd4e7520..f90a75cd1 100644
--- a/include/cli_startup.php
+++ b/include/cli_startup.php
@@ -6,7 +6,7 @@ require_once('boot.php');
function cli_startup() {
- global $a, $db;
+ global $a, $db, $default_timezone;
if(is_null($a)) {
$a = new App;
@@ -14,6 +14,10 @@ function cli_startup() {
if(is_null($db)) {
@include(".htconfig.php");
+
+ $a->timezone = ((x($default_timezone)) ? $default_timezone : 'UTC');
+ date_default_timezone_set($a->timezone);
+
require_once('include/dba/dba_driver.php');
$db = dba_factory($db_host, $db_port, $db_user, $db_pass, $db_data);
unset($db_host, $db_port, $db_user, $db_pass, $db_data);