From: Giuseppe Bilotta Date: Mon, 26 Jan 2009 11:50:14 +0000 (+0100) Subject: gitweb: rss channel date X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/74f4df8388b19731ca2f6a5ebf52466486d0df35937facf9f98fad671b092673 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 Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index c8d8c75..ef5e5dc 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -6088,6 +6088,10 @@ XML "$alt_url\n" . "\n"; } + if (%latest_date) { + print "$latest_date{'rfc2822'}\n"; + print "$latest_date{'rfc2822'}\n"; + } print "gitweb v.$version/$git_version\n"; } elsif ($format eq 'atom') { print <