Report: Set time to 00 and 23 hours before db BT#17648 - refs #3461

pull/3501/head
carlos alvarado 5 years ago
parent 034769b3b1
commit b8fedf36bb
  1. 4
      main/inc/lib/myspace.lib.php

@ -3670,13 +3670,13 @@ class MySpace
// Settings condition and parametter GET to right date // Settings condition and parametter GET to right date
if (!empty($startDate)) { 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; $_GET['startDate'] = $startDate;
$whereCondition .= " $whereCondition .= "
AND $tblItemProperty.lastedit_date >= '$startDate' "; AND $tblItemProperty.lastedit_date >= '$startDate' ";
} }
if (!empty($endDate)) { 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; $_GET['endDate'] = $endDate;
$whereCondition .= " $whereCondition .= "
AND $tblItemProperty.lastedit_date <= '$endDate' "; AND $tblItemProperty.lastedit_date <= '$endDate' ";

Loading…
Cancel
Save