Fix split by month in summarize_time
parent
349af79c2e
commit
d63bc27928
|
@ -92,16 +92,11 @@ sub sqlize_dates
|
||||||
{
|
{
|
||||||
# we've checked, trick_taint is fine
|
# we've checked, trick_taint is fine
|
||||||
trick_taint($start_date);
|
trick_taint($start_date);
|
||||||
$date_bits = " AND longdescs.bug_when > ?";
|
$date_bits = " AND longdescs.bug_when >= ?";
|
||||||
push @date_values, $start_date;
|
push @date_values, $start_date;
|
||||||
}
|
}
|
||||||
if ($end_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 < ?";
|
$date_bits .= " AND longdescs.bug_when < ?";
|
||||||
push @date_values, $end_date;
|
push @date_values, $end_date;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue