A Glitch in the RSS
Nik Khilnani just informed me that the RSS feed being generated by the cafelog b2 blog engine that powers the site was incorrectly setting the lastBuildDate of the RSS to the time of request of the RSS document. Although deceptively named, the lastBuildDate tag should, according to the RSS 2.0 reference, display " The last time the content of the channel changed. [e.g.] Sat, 07 Sep 2002 09:42:31 GMT".
The modification to b2 to get this to work was very simple:
I modified line 14 of b2rss.php from:
<lastBuildDate><?php echo gmdate("D, d M Y H:i:s"); ?> GMT</lastBuildDate>
<lastBuildDate><?php echo mysql2gmdate ( "D, d M Y H:i:s", get_lastpostdate() ); ?> GMT</lastBuildDate>
You also need a mysql2gmdate method to be addded to b2functions.php.Having to write PHP after a long absence, I just realized how little I missed it and how wonderful strong typing in Java is and what a difference solid development tools make in your productivity! (I never thought I'd be posting PHP code on this blog!)