zoukankan      html  css  js  c++  java
  • dedecms 5.7 采集目标文章的发布时间 采集后变成当前本地时间

    我已经解决了。现在把方法告诉你。都是我自己摸索出来的。。虽然我不知道什么意思。。。
    下面是步骤:

    1:找到 co_export.php
    然后找到这段代码:

    else if($itemName == 'pubdate')
    {
    $pubdate = trim($ctag->GetInnerText());
    if(preg_match("#[^0-9]#", $pubdate))
    {
    $pubdate = $sortrank = GetMkTime($pubdate);
    }
    /* else
    {
    $pubdate = $sortrank = time();
    }

    */

    }
    else if($itemName == 'litpic')
    {
    $litpic = trim($ctag->GetInnerText());
    }

    2.然后干掉 /* */之间的代码就OK了。
  • 相关阅读:
    053-242
    053-227
    053-671
    053-489
    053-670
    sql
    白纸黑字签字画押,出人命的事
    CSS
    JS
    Eclipse发布地址不同引发的问题
  • 原文地址:https://www.cnblogs.com/snowhite/p/7772718.html
Copyright © 2011-2022 走看看