From 22e8a7a3e1cdc324a2f40dc05e23e86ec333635c Mon Sep 17 00:00:00 2001
From: mattab <matthieu.aubry@gmail.com>
Date: Mon, 28 Apr 2014 13:14:09 +1200
Subject: [PATCH] Setting the default timezone to UTC in the core:archive
 script, refs #5043 This could potentially cause some big problems.

---
 console | 3 +++
 1 file changed, 3 insertions(+)

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
-- 
GitLab