Skip to content

Commit

Permalink
Merge pull request #17355 from twomice/1608_recurring_membership_fail…
Browse files Browse the repository at this point in the history
…s_paypal

Fix for dev/core#1608: correct date format for trxn_date.
  • Loading branch information
seamuslee001 authored May 19, 2020
2 parents bd3efe7 + eee81f5 commit aee0fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/Payment/PayPalProIPN.php
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ public function handlePaymentExpress() {
// & 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)) {
Expand Down

0 comments on commit aee0fdd

Please sign in to comment.