What is the correct format for RSS feed pubdate?
php, rss
Solution
Solved:
$pubDate = $article[creation_date];
$pubDate= date("D, d M Y H:i:s T", strtotime($pubDate));
then in my echo'd code:
<pubDate>'.$pubDate.'</pubDate>
Problem
I'm having trouble getting the date of my RSS Feed to run correctly. Do you know what the proper date to show it is? I have it stored in a field called creation_date in this format: 2012-08-14 10:17:12 Then i grab it: ``` $pubDate = $article[creation_date]; ``` Then I convert it: ``` $pubDate= date("Y-m-d", strtotime($pubDate)); ``` Then within my item tag I place it: `<pubdate>'.date("l, F d, Y", strtotime($pubDate)).'</pubdate>` Is there something that I'm not seeing?