From f09ea69525d406fb565fc94cddd03eb7690d501e Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Thu, 28 Jul 2011 22:48:41 +0000 Subject: added RSS - part 3 --- h-source/Application/Include/myFunctions.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'h-source/Application/Include/myFunctions.php') diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php index 1505512..bf8793a 100644 --- a/h-source/Application/Include/myFunctions.php +++ b/h-source/Application/Include/myFunctions.php @@ -84,6 +84,11 @@ function smartDate($uglyDate = null, $lang = 'en') return $smDate; } +function pubDateFormat($uglyDate = null) +{ + return date('r',strtotime($uglyDate)); +} + function sanitizeString($string) { $string = preg_match('/^[a-zA-Z0-9\-\_\.\+\s]+$/',$string) ? sanitizeAll($string) : 'undef'; -- cgit v1.2.3