From 879de440d1b619913d4377edd92b67c4cc679370 Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 22 Sep 2015 14:55:06 -0500 Subject: [PATCH] Removing the default timezone setting - It causes the process timezone to change for entire application - Timezone should be set by the application using the SDK. --- lib/PayPal/Core/PayPalLoggingManager.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/PayPal/Core/PayPalLoggingManager.php b/lib/PayPal/Core/PayPalLoggingManager.php index 5d2ae0f..6e2d9a4 100644 --- a/lib/PayPal/Core/PayPalLoggingManager.php +++ b/lib/PayPal/Core/PayPalLoggingManager.php @@ -70,11 +70,6 @@ class PayPalLoggingManager */ public function __construct() { - // To suppress the warning during the date() invocation in logs, we would default the timezone to GMT. - if (!ini_get('date.timezone')) { - date_default_timezone_set('GMT'); - } - $config = PayPalConfigManager::getInstance()->getConfigHashmap(); $this->isLoggingEnabled = (array_key_exists('log.LogEnabled', $config) && $config['log.LogEnabled'] == '1');