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:
authormattab <matthieu.aubry@gmail.com>2014-04-28 05:14:09 +0400
committermattab <matthieu.aubry@gmail.com>2014-04-28 05:14:09 +0400
commit22e8a7a3e1cdc324a2f40dc05e23e86ec333635c (patch)
tree859bf295edc1b872e44517523d3e89037f7b7969 /console
parent77cd310f7164196bb843e23011508b15a2c8f371 (diff)
Setting the default timezone to UTC in the core:archive script, refs #5043
This could potentially cause some big problems.
Diffstat (limited to 'console')
-rwxr-xr-xconsole3
1 files changed, 3 insertions, 0 deletions
diff --git a/console b/console
index 0e3dc3ff8a..bb901dfed7 100755
--- a/console
+++ b/console
@@ -11,6 +11,9 @@ if (!defined('PIWIK_USER_PATH')) {
}
require_once PIWIK_INCLUDE_PATH . '/core/testMinimumPhpVersion.php';
+
+@date_default_timezone_set('UTC');
+
require_once file_exists(PIWIK_INCLUDE_PATH . '/vendor/autoload.php')
? PIWIK_INCLUDE_PATH . '/vendor/autoload.php' // Piwik is the main project
: PIWIK_INCLUDE_PATH . '/../../autoload.php'; // Piwik is installed as a dependency