Toward fix for dev/core#1608: correct date format for trxn_date.
authorAllen Shaw <allen@JoineryHQ.com>
Mon, 18 May 2020 22:53:32 +0000 (17:53 -0500)
committerAllen Shaw <allen@JoineryHQ.com>
Mon, 18 May 2020 22:53:32 +0000 (17:53 -0500)
CRM/Core/Payment/PayPalProIPN.php

index 885fac970f2edc8897597746bb0d21c16fbfc369..46c0949f8517eef1fb30573b81ca8736f01db683 100644 (file)
@@ -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)) {