Teach you to solve discuz! forum time not unified problem

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

discuz!7.0 is Sing (Comsenz) company released in December 2008, a forum BBS construction station products. When the discuz! forum runs, often have users encounter such a problem, the member's last visit time and final publication time will exceed the current time, this situation occurs because the server time ahead of the reason. For example, it is 2009-7-28 16:00, and the last visit time and last publication time of the member's personal Center show as 2009-7-29 16:00.

At this time, the administrator needs to check the server's time settings to restore normal time. Although the server time has been adjusted, but there will still be some people's personal center to show the exception, such as members if only log on without posting the last published time will not be updated. You need to use SQL statements to upgrade the database at this time.

The upgrade method is as follows:

In the System Setup => tool => database => upgrade

Write the following SQL statement

UPDATE cdb_members SET lastactivity=lastvisit WHERE lastactivity>unix_timestamp ();

The meaning of this statement is to find a user whose last publication time is greater than the present time, setting his last publication time to the last access time.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.