From: Ian Jackson Date: Wed, 21 Apr 2010 14:05:47 +0000 (+0100) Subject: Get dates right in log lookup X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?p=modbot-mtm.git;a=commitdiff_plain;h=433def7bdb93ae29c0fb15fd0645391253d254a9;ds=sidebyside Get dates right in log lookup --- diff --git a/webstump/scripts/html_output.pl b/webstump/scripts/html_output.pl index 1c5fd4d..1f4a15d 100644 --- a/webstump/scripts/html_output.pl +++ b/webstump/scripts/html_output.pl @@ -704,7 +704,7 @@ and are often quoted in message headers in [square brackets].

return 0 unless @vals >= 5; my $subj= pop @vals; my ($group,$dir,$act,$reason,$timet) = @vals; - my $date= $timet ? (strftime "%Y-%M-%d %H:%M:%S GMT", gmtime $timet) + my $date= $timet ? (strftime "%Y-%m-%d %H:%M:%S GMT", gmtime $timet) : "(unknown)"; return 0 unless $group eq $request{'newsgroup'}; return 0 unless $subj =~ m,/(\d+)$,; @@ -721,7 +721,8 @@ and are often quoted in message headers in [square brackets].

print "" if $sofar; print "\n"; } else { - print "Reference not found."; + print "Reference not found.". + " (Perhaps message has expired, or is still in the queue?)"; } &end_html; }