您的位置:首页 > 其它

dedecms文章的更新时间问题 每次更改文章时间变成最新的

2014-07-25 15:26 323 查看


dedecms 每次更改文章,更新时间这里每次改了后再来看又变成当前最新时间的了。

解决方法:

查找后台目录的 templets/article_edit.htm 这个文件。 然后打开,查找如下代码:

<?php
$nowtime = GetDateTimeMk(time());
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:120px;\">";
?>


把此代码替换成

<input name="pubdate" value="<?php echo $nowtime1 = GetDateTimeMk($arcRow["pubdate"]);?>" type="text" id="pubdate" style="width:120px;">
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: