Support » Plugin: wpForo Forum » All posts have display current date and time

  • All my posts display the current date and time (minus one hour).
    PHP DateTime class is available on my server.

    Prinscreen of a discussion

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author gVectors Team

    (@gvectors-team)

    Please navigate to Dashboard > Settings > general and set WP timezone using UTC options. Thene navigate to Your Profile > Account page on front-end and do the same for time-zone option.

    Thread Starter ExtraPaul

    (@extrapaul)

    Done.

    But all dates and time of all posts display current date and time : is it normal ? In the above picture, you can see all posts with same timestamp… I expect to view the date and time of submitting, not the current time…

    Plugin Author gVectors Team

    (@gvectors-team)

    I don’t know what’s wrong on your website, this is something strange. You can check it on our support forum: http://wpforo.com/community/
    Could you please try to set WordPress timezone to UTC:0 in Dashboard > Settings > general admin page?

    Thread Starter ExtraPaul

    (@extrapaul)

    The timezone is already set on UTC:0.

    OK, I continue to search…

    Thread Starter ExtraPaul

    (@extrapaul)

    In functions.php, line 801 (function wpforo_date) you :

    $dt = new DateTime("now", new DateTimeZone($timezone_string)); 
    if( method_exists($dt, 'setTimestamp') ) $dt->setTimestamp($timestamp);

    $dt is set at now, and it gets $timestamp if method setTimestamp exists.
    But if it does not exists, $dt remains with the current time.

    I believe that the issue is there…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘All posts have display current date and time’ is closed to new replies.