Home >Backend Development >PHP Tutorial >Format Gregarius Chinese date format problem solution
Copy the code The code is as follows:
function rss_locale_date ($fmt, $ts, $addTZOffset = true) {
if (isset($_SERVER["WINDIR"])) {
//%e doesn't exists under windows!
strftime ($fmt, $ts +3600 * getConfig('rss.config.tzoffset'))); );
}
return iconv(”UTF-8″, “utf-8″, strftime($fmt, $ts));
//return utf8_encode(strftime($fmt, $ts));
The above introduces the solution to Gregarius Chinese date format problem, including format content. I hope it will be helpful to friends who are interested in PHP tutorials.