Skip to content

Commit

Permalink
make date filters work. Note: we still need to deal with the offset b…
Browse files Browse the repository at this point in the history
…etween the stored data (gmt/utc) and the localtimezone for queries like this.
  • Loading branch information
mantis committed May 17, 2009
1 parent 40b52ad commit 3fbc4a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/filter_api.php
Expand Up @@ -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() . " )" );
}

Expand Down

0 comments on commit 3fbc4a3

Please sign in to comment.