gitweb: rss channel date
The RSS 2.0 specifications defines not one but _two_ dates for its channel element! Woohoo! Luckily, it seems that consensus seems to be that if both are present they should be equal, except for some very obscure and discouraged cases. Since lastBuildDate would make more sense for us and pubDate seems to be the most commonly used, we defined both and make them equal. Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Giuseppe Bilotta committed
Jan 26, 2009 at 12:50 UTC
0cf31285a0e1a40745eb2a91534f6e6b54df0e2f
1 file changed
+4
gitweb/gitweb.perl
+4
@@ -6087,6 +6087,10 @@ XML
6087
"<link>$alt_url</link>\n" .
6088
"</image>\n";
6089
}
6090
+ if (%latest_date) {
6091
+ print "<pubDate>$latest_date{'rfc2822'}</pubDate>\n";
6092
+ print "<lastBuildDate>$latest_date{'rfc2822'}</lastBuildDate>\n";
6093
+ }
6094
print "<generator>gitweb v.$version/$git_version</generator>\n";
6095
} elsif ($format eq 'atom') {
6096
print <<XML;