summaryrefslogtreecommitdiff
path: root/controllers/base.php
diff options
context:
space:
mode:
Diffstat (limited to 'controllers/base.php')
-rw-r--r--controllers/base.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/controllers/base.php b/controllers/base.php
index c248ede1..c4a69bf0 100644
--- a/controllers/base.php
+++ b/controllers/base.php
@@ -67,6 +67,10 @@ abstract class Base
$language = $this->config->get('language', 'en_US');
if ($language !== 'en_US') \Translator\load($language);
+ //set timezone
+ $timezone = $this->config->get('timezone', 'UTC');
+ date_default_timezone_set($timezone);
+
$this->response->csp();
$this->response->nosniff();
$this->response->xss();