fix #369 : make sure to include the search day
... with forcing time to 00:00:00 on "start" and 23:59:59 on "stop"
This commit is contained in:
parent
74e2194a5f
commit
bfe4ff3e2f
1 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ if (isset($_POST['submit']))
|
|||
{
|
||||
$search['fields'][$type_date.'-after'] = array(
|
||||
'date' => sprintf(
|
||||
'%d-%02d-%02d',
|
||||
'%d-%02d-%02d 00:00:00',
|
||||
$_POST['start_year'],
|
||||
$_POST['start_month'] != 0 ? $_POST['start_month'] : '01',
|
||||
$_POST['start_day'] != 0 ? $_POST['start_day'] : '01'
|
||||
|
@ -132,7 +132,7 @@ if (isset($_POST['submit']))
|
|||
{
|
||||
$search['fields'][$type_date.'-before'] = array(
|
||||
'date' => sprintf(
|
||||
'%d-%02d-%02d',
|
||||
'%d-%02d-%02d 23:59:59',
|
||||
$_POST['end_year'],
|
||||
$_POST['end_month'] != 0 ? $_POST['end_month'] : '12',
|
||||
$_POST['end_day'] != 0 ? $_POST['end_day'] : '31'
|
||||
|
|
Loading…
Add table
Reference in a new issue