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:
@@ -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) )
|
||||
|
||||
Reference in New Issue
Block a user