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

git-svn-id: http://svn.automattic.com/wordpress/trunk@6995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi
2008-02-23 22:11:47 +00:00
parent 93f0c00cb7
commit 8d42a5d342
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) )