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

 

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;">

你可能感兴趣的:(dedecms)