Fixed timezone warning by adding timezone config option

This commit is contained in:
rzeka
2014-02-24 21:08:56 +01:00
parent b4784d39e1
commit e374a6fd64
7 changed files with 24 additions and 5 deletions

View File

@@ -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();