From: Brian Shaughnessy Date: Tue, 11 Feb 2014 16:26:10 +0000 (-0500) Subject: CRM-14202 allow scheduled reminder to be set for today X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2ea4f315b9cbdc846c4bf09a343e5765e7cd1387;p=civicrm-core.git CRM-14202 allow scheduled reminder to be set for today --- diff --git a/CRM/Admin/Form/ScheduleReminders.php b/CRM/Admin/Form/ScheduleReminders.php index 4340407847..0cd65dc5f8 100644 --- a/CRM/Admin/Form/ScheduleReminders.php +++ b/CRM/Admin/Form/ScheduleReminders.php @@ -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.'); } }