From: Giuseppe Bilotta Date: Mon, 26 Jan 2009 11:50:14 +0000 (+0100) Subject: gitweb: rss channel date X-Git-Tag: v1.6.2-rc0~73 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0cf31285a0e1a40745eb2a91534f6e6b54df0e2f;p=git.git 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/gitweb.perl b/gitweb/gitweb.perl index cc6d0fb79..756868a7f 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -6087,6 +6087,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 <