CRM-14202 allow scheduled reminder to be set for today
authorBrian Shaughnessy <brian@lcdservices.biz>
Tue, 11 Feb 2014 16:26:10 +0000 (11:26 -0500)
committerBrian Shaughnessy <brian@lcdservices.biz>
Tue, 11 Feb 2014 16:26:10 +0000 (11:26 -0500)
CRM/Admin/Form/ScheduleReminders.php

index 4340407847653c400823877b9b467cbf9a18780d..0cd65dc5f8504fc643c68f8efddf312d75e447ca 100644 (file)
@@ -273,7 +273,7 @@ class CRM_Admin_Form_ScheduleReminders extends CRM_Admin_Form {
     }
 
     if (!CRM_Utils_System::isNull($fields['absolute_date'])) {
-      if (CRM_Utils_Date::format(CRM_Utils_Date::processDate($fields['absolute_date'], NULL)) < CRM_Utils_Date::format(date('YmdHi00'))) {
+      if (CRM_Utils_Date::format(CRM_Utils_Date::processDate($fields['absolute_date'], NULL)) < CRM_Utils_Date::format(date('Ymd'))) {
         $errors['absolute_date'] = ts('Absolute date cannot be earlier than the current time.');
       }
     }