I'm not sure. But all my rss feeds are getting validated successfully even without a single warning. Here is my reference that uses date('r',$timestamp) to get a valid date for RSS 2.0 feed. http://in2.php.net/manual/en/function.date.php#70667 Here is the standard for RSS - http://blogs.law.harvard.edu/tech/rss
still got problem..headache... I dunno what happend for me, the date and time still got same problem. who can help me solve this problem? Thank You anyone can help me, pls. TQ
The problem might be the difference between your local timezone and server timezone. I'm not sure though.
I use the following code to turn a PHP time value (called $date_val) into a valid RSS 2.0 date: $rss_date = date("D, d M Y H:i:s O", $date_val); For more information, the current RSS 2.0 specification is here: http://www.rssboard.org/rss-specification
I alreadly set my local timezone to +0800 and server timezone also +0800 but dunno why that rss'article time can be fatser 4 hour compare orginally.
$res = mysql_query("SELECT topic,newsid,desc postdate,author FROM news WHERE display = 1 ORDER BY postdate DESC LIMIT 0,10"); while ($data = mysql_fetch_object($res)) { $item = new FeedItem(); $item->title = $data->topic; $item->link = 'http://mrd.com/news.php?n='. $data->newsid; $item->description = $data->desc; $item->date = $data->postdate; $item->source = "http://www.mrd.com"; $item->author = $data->author; $rss->addItem($item); } Code (markup): How to change like your format? Thank You.
my rss date display like that: <dc:date>2007-01-16T20:23:50+08:00</dc:date> is it correct or not? Thank You.
read the thread again from the start, there are already different solutions in here but all you do is making "its not working"-posts without letting anyone know what you tried or how your source code looks like now.