diff options
author | Christian Schmidt <github@chsc.dk> | 2018-09-20 23:31:31 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2018-09-20 23:31:31 +0300 |
commit | e5ba29079f9440b1cd9a677d49c7043f7c7eaa97 (patch) | |
tree | 82c9e363d9079792a03be810cc1f36676e1b8ef5 /core | |
parent | 177ceb2abd6013b8630bb1f2d5f323ca358c012a (diff) |
Auto-detect timezone and currency in installer (#13092)
* Auto-detect timezone and currency
* Compare timezone case-insentively
* Preserve existing defaults
Diffstat (limited to 'core')
-rw-r--r-- | core/bootstrap.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/bootstrap.php b/core/bootstrap.php index 557361e5cd..f0cae7495e 100644 --- a/core/bootstrap.php +++ b/core/bootstrap.php @@ -30,6 +30,8 @@ if (!defined('PIWIK_VENDOR_PATH')) { require_once PIWIK_INCLUDE_PATH . '/core/testMinimumPhpVersion.php'; session_cache_limiter('nocache'); + +define('PIWIK_DEFAULT_TIMEZONE', @date_default_timezone_get()); @date_default_timezone_set('UTC'); disableEaccelerator(); |