Skip to content

Commit

Permalink
Report: Set time to 00 and 23 hours before db BT#17648 - refs #3461
Browse files Browse the repository at this point in the history
  • Loading branch information
carlangas159 committed Sep 10, 2020
1 parent 034769b commit b8fedf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/inc/lib/myspace.lib.php
Expand Up @@ -3670,13 +3670,13 @@ protected static function getCompanyLearnpathSubscription($startDate = null, $en

// Settings condition and parametter GET to right date
if (!empty($startDate)) {
$startDate = api_get_utc_datetime($startDate->setTime(0,0,0)->format('Y-m-d'));
$startDate = api_get_utc_datetime($startDate->setTime(0,0,0)->format('Y-m-d H:i:s'));
$_GET['startDate'] = $startDate;
$whereCondition .= "
AND $tblItemProperty.lastedit_date >= '$startDate' ";
}
if (!empty($endDate)) {
$endDate = api_get_utc_datetime($endDate->setTime(23,59,59)->format('Y-m-d'));
$endDate = api_get_utc_datetime($endDate->setTime(23,59,59)->format('Y-m-d H:i:s'));
$_GET['endDate'] = $endDate;
$whereCondition .= "
AND $tblItemProperty.lastedit_date <= '$endDate' ";
Expand Down

0 comments on commit b8fedf3

Please sign in to comment.