火车采集器软件交流官方论坛

 找回密码
 加入会员
搜索
火车采集器V9版免费下载火车浏览器 - 可视采集,万能群发,全自动脚本工具
查看: 2388|回复: 1

官方发布的wordpress 2.6.3 火车发布接口 时区问题

[复制链接]
发表于 2008-11-19 13:20:26 | 显示全部楼层 |阅读模式
在官方发布的wordpress 2.6.3 火车发布接口文件sql.php中有如下代码:

if($title=='[标签:标题]'&&$content=='[标签:内容]'&&$cid=='[分类id]'){die('标题或内容或分类id为空');}
if($tag=='[标签:SY_tag]'){$tag='';}
    $showtime=date("Y-m-d H:i:s");
    $tm=time();
$sql="INSERT INTO `".$table_prefix."posts` ( `post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_title`, `post_category`, `post_excerpt`, `post_status`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, `pinged`, `post_modified`, `post_modified_gmt`, `post_content_filtered`, `post_parent`, `guid`, `menu_order`, `post_type`, `post_mime_type`, `comment_count`) VALUES (1, '$showtime', '$showtime', '$content', '$title', '$cid', '$summary', 'publish', 'open', 'open', '', '', '', '', '$showtime', '$showtime', '', 0, '', 0, 'post', '', 0)";
    $query=$DB->query($sql


问题如下,默认得到时间是GMT标准时间,如何使post_date的到中国时区的时间,而post_date_gmt得到GMT标准时间。
发表于 2008-11-19 13:25:09 | 显示全部楼层
您需要登录后才可以回帖 登录 | 加入会员

本版积分规则

QQ|手机版|Archiver|火车采集器官方站 ( 皖ICP备06000549 )

GMT+8, 2025-7-17 06:26

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表