Home >Backend Development >PHP Tutorial >Format Gregarius Chinese date format problem solution

Format Gregarius Chinese date format problem solution

WBOY
WBOYOriginal
2016-07-29 08:37:551036browse

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.


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn