chartinael
Member
Posted 2 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?
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.
http://codex.wordpress.org/Using_Custom_Fields
gosunatxrea
Member
Posted 2 years ago #
see
Backdated pre-1st January 1970 post displayed as published on the current viewing day
http://core.trac.wordpress.org/ticket/10332
Bug with backdated post before 1 January 1970 - wp2.8
http://wordpress.org/support/topic/285531?replies=15
chartinael
Member
Posted 2 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.
gosunatxrea
Member
Posted 2 years ago #
<?php the_time('Y.m.d') ?> is changed with <?php the_date_xml(); ?>.
Though it is not a fundamental solution.