The could be different date conversion functions in the future.
<xsl:value-of select="$twitterBaseURL"/><xsl:value-of select=".//a[@class='details with-icn js-details']/@href"/>
</link>
<pubDate>
- <xsl:value-of select="php:functionString('formatDate', .//small[@class='time']//span/@data-time)"/>
+ <xsl:value-of select="php:functionString('epoch_to_gmdate', .//small[@class='time']//span/@data-time)"/>
</pubDate>
<description>
<xsl:value-of select="concat($screen-name, ': ')"/>
date_default_timezone_set('UTC');
-function formatDate($timestamp)
+function epoch_to_gmdate($timestamp)
{
return gmdate('D, d M Y H:i:s', $timestamp) . ' GMT';
}