Fix split by month in summarize_time

beta
Vitaliy Filippov 2017-09-08 17:52:21 +03:00
parent 349af79c2e
commit d63bc27928
1 changed files with 1 additions and 6 deletions

View File

@ -92,16 +92,11 @@ sub sqlize_dates
{
# we've checked, trick_taint is fine
trick_taint($start_date);
$date_bits = " AND longdescs.bug_when > ?";
$date_bits = " AND longdescs.bug_when >= ?";
push @date_values, $start_date;
}
if ($end_date)
{
# we need to add one day to end_date to catch stuff done today
# do not forget to adjust date if it was the last day of month
my (undef, undef, undef, $ed, $em, $ey, undef) = strptime($end_date);
($ey, $em, $ed) = date_adjust($ey+1900, $em+1, $ed, 1);
$end_date = sprintf("%04d-%02d-%02d", $ey, $em, $ed);
$date_bits .= " AND longdescs.bug_when < ?";
push @date_values, $end_date;
}