From: eileen Date: Wed, 23 Sep 2020 23:45:23 +0000 (+1200) Subject: dev/core#1921 Remove handling fo Civi4.2 from paypalProIPN X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e3872d50979e140bd1fe2538ff47d3c5d5fb7bcf;p=civicrm-core.git dev/core#1921 Remove handling fo Civi4.2 from paypalProIPN All the tests in CRM_Core_Payment_PayPalProIPNTest pass through this line It used to be necessary to reformat dates on a DAO before resaving - up until 2014 --- diff --git a/CRM/Core/Payment/PayPalProIPN.php b/CRM/Core/Payment/PayPalProIPN.php index ad49171254..2866c9bdd6 100644 --- a/CRM/Core/Payment/PayPalProIPN.php +++ b/CRM/Core/Payment/PayPalProIPN.php @@ -174,15 +174,6 @@ class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN { $now = date('YmdHis'); - // fix dates that already exist - $dates = ['create', 'start', 'end', 'cancel', 'modified']; - foreach ($dates as $date) { - $name = "{$date}_date"; - if ($recur->$name) { - $recur->$name = CRM_Utils_Date::isoToMysql($recur->$name); - } - } - $sendNotification = FALSE; $subscriptionPaymentStatus = NULL; //List of Transaction Type