----------------------------------------
* CRM-16563: Recurring event system sometimes suggests incorrect dates
https://issues.civicrm.org/jira/browse/CRM-16563
if (!empty($scheduleReminderDetails['absolute_date'])) {
$absoluteDate = CRM_Utils_Date::setDateDefaults($scheduleReminderDetails['absolute_date']);
- $endDate = new DateTime($absoluteDate[0] . ' ' . $absoluteDate[1]);
- $endDate->modify('+1 day');
+ // absolute_date column of scheduled-reminder table is of type date (and not datetime)
+ // and we always want the date to be included, and therefore appending 23:59
+ $endDate = new DateTime($absoluteDate[0] . ' ' . '23:59');
$r->until($endDate);
}