Skip to content
Snippets Groups Projects
Commit 639c1919 authored by eileen's avatar eileen
Browse files

Fix incorrect defaulting to the beginning rather than end the to-range day

parent e42816cf
No related branches found
No related tags found
No related merge requests found
......@@ -2185,6 +2185,10 @@ class CRM_Report_Form extends CRM_Core_Form {
$sqlOP = $this->getSQLOperator($relative);
return "( {$fieldName} {$sqlOP} )";
}
if (strlen($to) === 10) {
// If we just have the date we assume the end of that day.
$to .= ' 23:59:59';
}
if ($relative) {
list($from, $to) = $this->getFromTo($relative, $from, $to, $fromTime, $toTime);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment