timezone support/config added, fixed #102

This commit is contained in:
Milos Stojanovic
2020-07-18 18:23:05 +02:00
parent 4f6b55675f
commit a2566561b3
4 changed files with 7 additions and 0 deletions

View File

@@ -17,6 +17,9 @@ class Config
public function __construct(array $config = [])
{
$this->config = $config;
$timezone = isset($this->config['timezone']) ? $this->config['timezone'] : 'UTC';
date_default_timezone_set($timezone);
}
public function get($key = null, $default = null)