From e5ba29079f9440b1cd9a677d49c7043f7c7eaa97 Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Thu, 20 Sep 2018 22:31:31 +0200 Subject: Auto-detect timezone and currency in installer (#13092) * Auto-detect timezone and currency * Compare timezone case-insentively * Preserve existing defaults --- core/bootstrap.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/bootstrap.php') 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(); -- cgit v1.2.3