How to solve the problem of senddate being later than pubdate in dede5.7
How to solve the problem of senddate being later than pubdate in dede5.7?
With the requirements of "Baidu Search Landing Page Time Factor Specification", web pages need to add the standardized release time and publishing time, and it is accurate to the second. Many friends have used DEDE to build websites. , there are two times, senddate and pubdate, in DreamWeaver. One is the release time, and the other can be regarded as the update time.
Recommended study: 梦Weavercms
But after we publish the article, we will find that the senddate is later than the pubdate time. This is a minor problem, that is It is theoretically unreasonable to tell search engines that the release time is later than the update time. How to solve this problem?
After testing, the editor modified article_add.php under dede and we searched for "$senddate"
us Change: $senddate=time(); to $senddate = GetMkTime($pubdate); Save
After modification, we will find out when we re-publish an article, When publishing for the first time, the time of senddate and pubdate are the same. This is correct. When publishing for the first time, the two times should be the same. When we modify the newly published article, we will find that the pubdate is updated. It has become the latest modified time, and senddate has not changed. This solves the requirements of the "Baidu Search Landing Page Time Factor Specification".
The above is the detailed content of How to solve the problem of senddate being later than pubdate in dede5.7. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 English version
Recommended: Win version, supports code prompts!