Rename formatDate() function to epoch_to_gmdate()
authorAntonio Ospite <ospite@studenti.unina.it>
Sat, 27 Jul 2013 14:01:36 +0000 (16:01 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Sat, 27 Jul 2013 14:01:36 +0000 (16:01 +0200)
The could be different date conversion functions in the future.

rss_converter_twitter.com.xsl
tweeper.php

index 6d72ceb..45e148d 100644 (file)
@@ -42,7 +42,7 @@
                 <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, ': ')"/>
index 58c1642..e55ff82 100755 (executable)
@@ -20,7 +20,7 @@
 
 date_default_timezone_set('UTC');
 
-function formatDate($timestamp)
+function epoch_to_gmdate($timestamp)
 {
   return gmdate('D, d M Y H:i:s', $timestamp) . ' GMT';
 }