Ready to get started?Download WordPress


[resolved] Time Stamp / Post Date (6 posts)

  1. chartinael
    Posted 5 years ago #

    Is there a way to actually display old old time stamps? I did enter time stamp of post original date ... you know diary like september 10, 1961 or the like ... and it comes up with the day I entered, not the day I meant to show.

    Any way to get that to work correct? I presume WP cannot count this far back? Is that the issue?

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Dates prior to Jan 1 1970 can be problematic in some PHP versions. The best way to deal with this within WordPress is to store your historical date in a custom field (preferably in the format yyyy-mm-dd) and then edit your theme templates to display this field instead of the date that the post was actually created.


  3. gosunatxrea
    Posted 5 years ago #

    Backdated pre-1st January 1970 post displayed as published on the current viewing day

    Bug with backdated post before 1 January 1970 - wp2.8

  4. chartinael
    Posted 5 years ago #

  5. herko
    Posted 4 years ago #

    solution doesn't work. It needs to be fixed in the WP core, but the trac report isn't assigned to any specific version, just 'future version'. So it's not in line to be fixed yet.

  6. gosunatxrea
    Posted 4 years ago #

    <?php the_time('Y.m.d') ?> is changed with <?php the_date_xml(); ?>.

    Though it is not a fundamental solution.

Topic Closed

This topic has been closed to new replies.

About this Topic