Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Merge pull request #11 from MRolefes/develop
Browse files Browse the repository at this point in the history
fixed date range criteria->to, added 23h 59m 59s to be able to select…
  • Loading branch information
Bob Olde Hampsink committed Nov 11, 2015
2 parents 7001de3 + 45dae73 commit 6e6b000
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elementtypes/AuditLogElementType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 6e6b000

Please sign in to comment.