Gregarius中文日期格式问题解决办法

时间:2023-11-18 09:51:00 


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));  
}
标签:Gregarius,中文日期,rss,locale,date
0
投稿

猜你喜欢

  • Asp 返回引用类型函数代码

    2011-03-10 10:44:00
  • python3安装speech语音模块的方法

    2023-03-24 12:09:32
  • pycharm安装深度学习pytorch的d2l包失败问题解决

    2022-11-26 03:36:56
  • 使用pandas将numpy中的数组数据保存到csv文件的方法

    2023-07-17 15:27:38
  • firebug1.7调试实用技巧指南

    2011-06-27 20:17:22
  • mysql 5.7.14 下载安装配置方法图文教程

    2024-01-21 00:12:58
  • oracle 11g的警告日志和监听日志的删除方法

    2023-06-29 13:59:36
  • 5招带你轻松优化MySQL count(*)查询性能

    2024-01-28 04:40:58
  • 在ASP中使用SQL语句之11:记录统计

    2007-08-11 13:27:00
  • Python爬虫基础之XPath语法与lxml库的用法详解

    2022-07-03 20:56:06
  • python实现黄金分割法的示例代码

    2022-08-27 19:41:17
  • asp中Access与Sql Server数据库区别总结

    2007-11-18 15:08:00
  • Python3 queue队列模块详细介绍

    2023-10-03 05:10:51
  • python在新的图片窗口显示图片(图像)的方法

    2021-11-17 00:38:18
  • 使用MySQL内建复制功能

    2009-12-15 21:36:00
  • 二级下拉菜单代码

    2008-11-01 18:18:00
  • 配置SQL Server 2000选项

    2010-04-25 11:01:00
  • 详解Python中的Numpy、SciPy、MatPlotLib安装与配置

    2022-09-26 19:07:58
  • 如何基于pythonnet调用halcon脚本

    2022-09-27 16:34:23
  • Python中.py文件打包成exe可执行文件详解

    2023-06-10 19:11:00
  • asp之家 网络编程 m.aspxhome.com