X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/17e33477fa142bfca1fa30369e610aaada3d1b51..76afa982386da83e9542278ad3ea736d2fd486ff:/tweeper.php diff --git a/tweeper.php b/tweeper.php index fdf6e5c..3e250b7 100644 --- a/tweeper.php +++ b/tweeper.php @@ -44,24 +44,24 @@ class Tweeper { /** * Convert numeric Epoch to the date format expected in a RSS document. */ - public static function epochToGmdate($timestamp) { + public static function epochToRssDate($timestamp) { if (!is_numeric($timestamp) || is_nan($timestamp)) { $timestamp = 0; } - return gmdate('D, d M Y H:i:s', $timestamp) . ' GMT'; + return gmdate(DATE_RSS, $timestamp); } /** * Convert generic date string to the date format expected in a RSS document. */ - public static function strToGmdate($date) { + public static function strToRssDate($date) { $timestamp = strtotime($date); if (FALSE === $timestamp) { $timestamp = 0; } - return Tweeper::epochToGmdate($timestamp); + return Tweeper::epochToRssDate($timestamp); } /**