From f8468b4c3aeeb51f485c6bb7107f5b64a9643c85 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 29 Sep 2014 23:36:41 -0700 Subject: allow custom role permissions and fix site timezone. --- index.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'index.php') diff --git a/index.php b/index.php index 5a9ec1026..6c18cbcb8 100755 --- a/index.php +++ b/index.php @@ -27,6 +27,10 @@ $a->install = ((file_exists('.htconfig.php') && filesize('.htconfig.php')) ? fal @include(".htconfig.php"); +$a->timezone = ((x($default_timezone)) ? $default_timezone : 'UTC'); +date_default_timezone_set($a->timezone); + + /** * * Try to open the database; -- cgit v1.2.3