RSS Feed date/time problems

2 posts by 2 authors in: Forums > CMS Builder
Last Post: November 13, 2009   (RSS)

By bruno - November 13, 2009

Hi,

I have created a feed from the blog section of a site running CMS builder. RSS feed seems to be displaying in browsers just fine, but facebook is being picky about validation.

I used a feedvalidator here:

http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fcamusaromance.com%2Fblog%2Frss.xml.php

It sees that in order for the feed to be valid the pubdate needs to be RFC-822 date-time format.

Im currently generating the date time this way: <pubDate><?php echo date("r", strtotime($record['date'])) ?></pubDate>

Any idea how I would generate the time with php in that format?