diff --git a/elementtypes/AuditLogElementType.php b/elementtypes/AuditLogElementType.php index 8b99802..038f73a 100644 --- a/elementtypes/AuditLogElementType.php +++ b/elementtypes/AuditLogElementType.php @@ -212,6 +212,7 @@ public function modifyElementsQuery(DbCommand $query, ElementCriteriaModel $crit // Check for date to if (!empty($criteria->to)) { + $criteria->to->add(new DateInterval('PT23H59M59S')); $query->andWhere(DbHelper::parseDateParam('auditlog.dateUpdated', '<= '.DateTimeHelper::formatTimeForDb($criteria->to), $query->params)); }