From e374a6fd6499b50d4587d136490ced7444f8bc2b Mon Sep 17 00:00:00 2001 From: rzeka Date: Mon, 24 Feb 2014 21:08:56 +0100 Subject: Fixed timezone warning by adding timezone config option --- controllers/base.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'controllers/base.php') 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(); -- cgit v1.2.3