Gregarius中文日期格式问题解决办法
代码如下:
function rss_locale_date ($fmt, $ts, $addTZOffset = true) { if (isset($_SERVER["WINDIR"])) { //%e doesnt' exists under windows! $fmt=str_replace(”%e”,”%#d”,$fmt); } if ($addTZOffset) { return iconv(”UTF-8″, “utf-8″, strftime($fmt, $ts +3600 * getConfig('rss.config.tzoffset'))); //return utf8_encode(strftime($fmt, $ts +3600 * getConfig('rss.config.tzoffset'))); } return iconv(”UTF-8″, “utf-8″, strftime($fmt, $ts)); //return utf8_encode(strftime($fmt, $ts)); }
相关推荐
meylovezn 2020-03-23
tengyunjiawucom 2020-03-08
JamesRayMurphy 2020-01-16
zhglinux 2020-01-12
chouliqingke 2019-12-18
xiaoxiaoniaoer 2019-12-18
逍遥友 2019-12-08
flowerCSDN 2014-01-10
IT技术研究院 2019-05-09
PythonGCS 2019-04-24
liuxiaohua 2019-06-27
dbhelpera 2012-05-05
huanganxixi 2012-05-05
huanganxixi 2012-03-16
尚 2011-11-20
guangmingsky 2018-07-03
efeve 2018-06-28
hfuturer 2018-05-27