我無法使我的RSS源的日期正確運行。你知道顯示它的恰當日期是什麼嗎?RSS提要pubdate的正確格式是什麼?
我把它保存在一個名爲CREATION_DATE在此格式字段:2012-08-14 10時17分十二秒
然後我抓住它:
$pubDate = $article[creation_date];
然後我把它轉換:
$pubDate= date("Y-m-d", strtotime($pubDate));
然後我的項目標籤內,我把它:
<pubdate>'.date("l, F d, Y", strtotime($pubDate)).'</pubdate>
有沒有我沒有看到的東西?
可能的重複[如何正確地將日期放在RSS提要中的元素](http://stackoverflow.com/questions/9405309/how-to-properly-place-date-in-pubdate-element-on- rss-feed) –
random
2012-08-19 06:51:33