From e8780288b31e6d2583b93a85e652b3e19613a708 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sat, 12 Jan 2019 17:41:43 -0500 Subject: [PATCH] Utilize getTimeZoneString() method Co-Authored-By: jgillmanjr --- CRM/Core/Payment/PayPalIPN.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Payment/PayPalIPN.php b/CRM/Core/Payment/PayPalIPN.php index 3784a1cfdb..4248d1c848 100644 --- a/CRM/Core/Payment/PayPalIPN.php +++ b/CRM/Core/Payment/PayPalIPN.php @@ -394,7 +394,7 @@ class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN { $paymentDate = $this->retrieve('payment_date', 'String', FALSE); if (!empty($paymentDate)) { $receiveDateTime = new DateTime($paymentDate); - $systemTimeZone = new DateTimeZone(date_default_timezone_get()); + $systemTimeZone = new DateTimeZone(CRM_Core_Config::singleton()->userSystem->getTimeZoneString()); $receiveDateTime->setTimezone($systemTimeZone); $input['receive_date'] = $receiveDateTime->format('YmdHis'); } -- 2.25.1