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: https://git.lorimer.id.au/gitweb.git/diff_plain/0cf31285a0e1a40745eb2a91534f6e6b54df0e2f 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 cc6d0fb79e..756868a7f9 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -6087,6 +6087,10 @@ sub git_feed { "$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 <