Commit 32a88e53 authored by Taddeus Kroes's avatar Taddeus Kroes

Added default timezone check

parent 1e0b8f7c
...@@ -21,6 +21,9 @@ $config = load_config('config.json'); ...@@ -21,6 +21,9 @@ $config = load_config('config.json');
if (($config_local = load_config('config.local.json', true)) !== null) if (($config_local = load_config('config.local.json', true)) !== null)
$config = array_merge_recursive($config, $config_local); $config = array_merge_recursive($config, $config_local);
if (isset($config['default_timezone']))
date_default_timezone_set($config['default_timezone']);
define('ROOT_URL', $config['root_url']); define('ROOT_URL', $config['root_url']);
$view = new Slim\Latte\LatteView(array( $view = new Slim\Latte\LatteView(array(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment