From 3fbc4a38aba3f79df6fe5114a95367588e30c6c7 Mon Sep 17 00:00:00 2001 From: Paul Richards Date: Sun, 17 May 2009 23:44:31 +0100 Subject: [PATCH] make date filters work. Note: we still need to deal with the offset between the stored data (gmt/utc) and the localtimezone for queries like this. --- core/filter_api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/filter_api.php b/core/filter_api.php index eea4f3778c..5aa5bbb594 100644 --- a/core/filter_api.php +++ b/core/filter_api.php @@ -1517,8 +1517,8 @@ function filter_get_bug_rows( &$p_page_number, &$p_per_page, &$p_page_count, &$p $t_start_string = $t_filter[FILTER_PROPERTY_START_YEAR] . "-" . $t_filter[FILTER_PROPERTY_START_MONTH] . "-" . $t_filter[FILTER_PROPERTY_START_DAY] . " 00:00:00"; $t_end_string = $t_filter[FILTER_PROPERTY_END_YEAR] . "-" . $t_filter[FILTER_PROPERTY_END_MONTH] . "-" . $t_filter[FILTER_PROPERTY_END_DAY] . " 23:59:59"; - $t_where_params[] = $t_start_string; - $t_where_params[] = $t_end_string; + $t_where_params[] = strtotime( $t_start_string ); + $t_where_params[] = strtotime( $t_end_string ); array_push( $t_where_clauses, "($t_bug_table.date_submitted BETWEEN " . db_param() . " AND " . db_param() . " )" ); }