aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2015-11-02 12:23:55 +0100
committerplegall <plg@piwigo.org>2015-11-02 12:23:55 +0100
commitbfe4ff3e2fee4dabb2b459d2ce077ab7e92a2e39 (patch)
treea1b0d18aa21f7dbbf2c2eb5c07980c12f8f5e36e
parent74e2194a5fb9a06148a7f3b03530daa7378a9be2 (diff)
fix #369 : make sure to include the search day
... with forcing time to 00:00:00 on "start" and 23:59:59 on "stop"
-rw-r--r--search.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/search.php b/search.php
index e4528ea42..3fc33f24b 100644
--- a/search.php
+++ b/search.php
@@ -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'