Fix the display of human time difference when server timezone if different from blog timezone. Fixes #5970 props jhodgdon.

git-svn-id: https://develop.svn.wordpress.org/trunk@6995 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2008-02-23 22:11:47 +00:00
parent 0a28ed62e4
commit 02ab17364e
4 changed files with 13 additions and 5 deletions

View File

@@ -44,11 +44,11 @@ foreach($posts_columns as $column_name=>$column_display_name) {
if ( 'modified' == $column_name ) {
$t_time = get_the_modified_time(__('Y/m/d g:i:s A'));
$m_time = $post->post_modified;
$time = get_post_modified_time();
$time = get_post_modified_time('G', true);
} else {
$t_time = get_the_time(__('Y/m/d g:i:s A'));
$m_time = $post->post_date;
$time = get_post_time();
$time = get_post_time('G', true);
}
if ( ( abs(time() - $time) ) < 86400 ) {
if ( ( 'future' == $post->post_status) )