CRM-15932 - Fix exclude date format
authorColeman Watts <coleman@civicrm.org>
Wed, 4 Mar 2015 01:20:39 +0000 (20:20 -0500)
committerColeman Watts <coleman@civicrm.org>
Wed, 4 Mar 2015 01:20:39 +0000 (20:20 -0500)
CRM/Core/Form/RecurringEntity.php

index f3247fe26916d4b27d373aa13bc843785c28de63..7f73df3ec9444d4090f62e83cc1b5f08ec658d71 100644 (file)
@@ -100,7 +100,7 @@ class CRM_Core_Form_RecurringEntity {
     $excludeOptionValues = array();
     if (!empty($optionValue)) {
       foreach ($optionValue as $key => $val) {
-        $excludeOptionValues[$val['value']] = CRM_Utils_Date::customFormat($val['value']);
+        $excludeOptionValues[$val['value']] = substr(CRM_Utils_Date::mysqlToIso($val['value']), 0, 10);
       }
       self::$_excludeDateInfo = $excludeOptionValues;
     }