From: Allen Shaw Date: Mon, 18 May 2020 22:53:32 +0000 (-0500) Subject: Toward fix for dev/core#1608: correct date format for trxn_date. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=eee81f5a7c0ca4d57e09c032ffccb690d0877329;p=civicrm-core.git Toward fix for dev/core#1608: correct date format for trxn_date. --- diff --git a/CRM/Core/Payment/PayPalProIPN.php b/CRM/Core/Payment/PayPalProIPN.php index 885fac970f..46c0949f85 100644 --- a/CRM/Core/Payment/PayPalProIPN.php +++ b/CRM/Core/Payment/PayPalProIPN.php @@ -588,7 +588,7 @@ INNER JOIN civicrm_membership_payment mp ON m.id = mp.membership_id AND mp.contr // & suspec main function may be a victom of copy & paste // membership would be an easy add - but not relevant to my customer... $this->_component = $input['component'] = 'contribute'; - $input['trxn_date'] = date('Y-m-d-H-i-s', strtotime(self::retrieve('time_created', 'String'))); + $input['trxn_date'] = date('Y-m-d H:i:s', strtotime(self::retrieve('time_created', 'String'))); $paymentProcessorID = $contributionRecur['payment_processor_id']; if (!$this->validateData($input, $ids, $objects, TRUE, $paymentProcessorID)) {