Forums

Post and comment time stuck to one date (5 posts)

  1. tjkammonen
    Member
    Posted 2 years ago #

    Hi.

    I upgraded to latest version 2.8.4. After that all post and comment dates have been stuck to 20.9.2009. Only date seems to be shown wrong on site, time is ok.

    In admin dashboard post and comment dates show ok.

    Using the_time() function in http://www.kiilablogi.net.

    Any ideas? Anyone else having the same problem?

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    Please paste all the code from the theme template (probably index.php) that is displaying those posts into a pastebin such as http://wordpress.pastebin.ca and report the link back here so someone might find your problem. Thanks.

  3. tjkammonen
    Member
    Posted 2 years ago #

    Here it is. http://wordpress.pastebin.ca/1578963

    I pasted there index.php, important parts of single.php and comments.php.
    Parts i left out from single.php & comments.php were just graphic divs.

  4. tjkammonen
    Member
    Posted 2 years ago #

    Oh, and thanks for a very good advice :)

  5. MichaelH
    Volunteer
    Posted 2 years ago #

    You blog dates look okay to me...but I would use this:

    <?php
    //that's a capitol Y
    the_time('j.m.Y') ?>

    instead of

    <?php the_time('j.m.20y') ?>

    For September 20, 2009 you would see 20.09.2009
    For September 16, 2009 you would see 16.09.2009

    Related:
    Formatting_Date_and_Time
    Template_Tags/the_time

Topic Closed

This topic has been closed to new replies.

About this Topic