From ad8eaec9f83ce3d5f502f8439cba0c3210b124cd Mon Sep 17 00:00:00 2001 From: kurund Date: Mon, 8 Apr 2013 22:27:30 +0530 Subject: [PATCH] patched CRM-12286 ---------------------------------------- * CRM-12286: Importing Contributions Doesn't Work. Date Rejected http://issues.civicrm.org/jira/browse/CRM-12286 --- CRM/Contribute/Import/Parser/Contribution.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/CRM/Contribute/Import/Parser/Contribution.php b/CRM/Contribute/Import/Parser/Contribution.php index 2650193b3d..64bcb9e297 100644 --- a/CRM/Contribute/Import/Parser/Contribution.php +++ b/CRM/Contribute/Import/Parser/Contribution.php @@ -258,9 +258,15 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Contribute_Import_Pa foreach ($params as $key => $val) { if ($val) { switch ($key) { - case 'pledge_payment': - $params[$key] = CRM_Utils_String::strtobool($val); - break; + case 'receive_date': + case 'cancel_date': + case 'receipt_date': + case 'thankyou_date': + $params[$key] = CRM_Utils_Date::formatDate($params[$key], $dateType); + break; + case 'pledge_payment': + $params[$key] = CRM_Utils_String::strtobool($val); + break; } if ($customFieldID = CRM_Core_BAO_CustomField::getKeyID($key)) { if ($customFields[$customFieldID]['data_type'] == 'Date') { -- 2.25.1