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:
Diffstat (limited to 'core/Updates/2.16.3-b3.php')
-rw-r--r--core/Updates/2.16.3-b3.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Updates/2.16.3-b3.php b/core/Updates/2.16.3-b3.php
index a1175c9f4d..4d28615f6f 100644
--- a/core/Updates/2.16.3-b3.php
+++ b/core/Updates/2.16.3-b3.php
@@ -34,7 +34,11 @@ class Updates_2_16_3_b3 extends PiwikUpdates
protected function adjustTimezoneBySite($hour, $idSite)
{
$timezone = Site::getTimezoneFor($idSite);
- $dateTimeZone = new \DateTimeZone($timezone);
+ try {
+ $dateTimeZone = new \DateTimeZone($timezone);
+ } catch(\Exception $e) {
+ return;
+ }
$timeZoneDifference = -ceil($dateTimeZone->getOffset(new \DateTime()) / 3600);
return (24 + $hour + $timeZoneDifference) % 24;
}