Answer by weszy for What is the correct format for RSS feed pubdate?
The easiest method is to use the DATE_RSS predefined constant (available since PHP 5.1.0). $pubDate = date(DATE_RSS, strtotime($pubDate));
View ArticleAnswer by Charalampos Tsimpouris for What is the correct format for RSS feed...
While the accepted answer ("D, d M Y H:i:s T") works as expected most of the time, it is not 100% correct. In multilingual situations this string may give non English text which won't be accepted as...
View ArticleAnswer by Pedro Lobito for What is the correct format for RSS feed pubdate?
Rss pubDate uses the RFC 2822 standards. You can achieve this in php by invoking the r argument on the Date function, i.e: <?php $pubDate= date('r', time()); echo...
View ArticleAnswer by Nebel54 for What is the correct format for RSS feed pubdate?
The PHP date function has already a way to format pubDate (RFC 2822) compliant dates: date('r', $timestamp);
View ArticleAnswer by splash for What is the correct format for RSS feed pubdate?
See pubDate definition in RSS 2.0 Specification: All date-times in RSS conform to the Date and Time Specification of RFC 822, with the exception that the year may be expressed with two characters or...
View ArticleAnswer by Paul T. Rawkeen for What is the correct format for RSS feed pubdate?
What about DateTime object (PHP 5 >= 5.2.0) \DateTime::createFromFormat(\DateTime::RSS, $RSSDate); // converting RSS date to object or date(\DateTime::RSS, $timestamp); // formatting timestamp to...
View ArticleAnswer by matao for What is the correct format for RSS feed pubdate?
I have used like this: $item->date = date('D, d M Y H:i:s GMT', strtotime($myBlogPublishedTime)); my hp rss sample
View ArticleAnswer by Edd for What is the correct format for RSS feed pubdate?
Use this format: D, d M Y H:i:s O. See http://php.net/manual/en/class.datetime.php Or use DateTime constants for more easy usage: DateTime::RSS
View ArticleAnswer by Dan Fein for What is the correct format for RSS feed pubdate?
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>
View ArticleWhat is the correct format for RSS feed pubdate?
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...
View ArticleAnswer by Alexander Koglin for What is the correct format for RSS feed pubdate?
This is how I solved to compile a valid RFC-822 datetime for RSS into XSLT:<xsl:variable name="now" select="fn:current-dateTime()"/><xsl:value-of select="format-dateTime($now, '[FNn,3-3],...
View Article
More Pages to Explore .....