Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schmidt <github@chsc.dk>2018-09-20 23:31:31 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2018-09-20 23:31:31 +0300
commite5ba29079f9440b1cd9a677d49c7043f7c7eaa97 (patch)
tree82c9e363d9079792a03be810cc1f36676e1b8ef5 /core/bootstrap.php
parent177ceb2abd6013b8630bb1f2d5f323ca358c012a (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/bootstrap.php')
-rw-r--r--core/bootstrap.php2
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();