return () if @merged and $merged[0] < $d{bug};
# 3600*24*30 (30 days)
- my $cmonths = int(($startdate - $status->{date}) / 2592000);
+ my $cmonths = int(($startdate -
+ length($status->{date})?$status->{date}:0) /
+ 2592000);
if ($cmonths >= 24 && !length($status->{forwarded}) &&
!$excludepackage{$d{pkg}}) {
$oldpackage{$d{bug}} = $d{pkg};
open OLDBUGS, '> /org/bugs.debian.org/www/stats/oldbugs.html.new'
or die "can't open oldbugs.html.new: $!";
+binmode(OLDBUGS,':encoding(UTF-8)');
print OLDBUGS <<EOF or die "can't write to oldbugs.html.new: $!";
<html><head><title>Bugs Over Two Years Old</title></head>
<body>