functionrss_locale_date($fmt,$ts,$addTZOffset=true){
if(isset($_SERVER["WINDIR"])){
//%edoesnt'existsunderwindows!
$fmt=str_replace(”%e”,”%#d”,$fmt);
}
if($addTZOffset){
returniconv(”UTF-8″,“utf-8″,strftime($fmt,$ts+3600*getConfig('rss.config.tzoffset')));
//returnutf8_encode(strftime($fmt,$ts+3600*getConfig('rss.config.tzoffset')));
}
returniconv(”UTF-8″,“utf-8″,strftime($fmt,$ts));
//returnutf8_encode(strftime($fmt,$ts));
}