mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-01 00:27:38 +02:00
strtotime needs to now that the time string is in GMT. http://mosquito.wordpress.org/view.php?id=1075
git-svn-id: http://svn.automattic.com/wordpress/trunk@2471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3505b7172a
commit
6851c1e0ab
@ -39,7 +39,7 @@ if ( $scheduled = $wpdb->get_results("SELECT ID, post_title, post_date_gmt FROM
|
|||||||
foreach ($scheduled as $post) {
|
foreach ($scheduled as $post) {
|
||||||
if ($post->post_title == '')
|
if ($post->post_title == '')
|
||||||
$post->post_title = sprintf(__('Post #%s'), $post->ID);
|
$post->post_title = sprintf(__('Post #%s'), $post->ID);
|
||||||
echo "<li><a href='post.php?action=edit&post=$post->ID' title='" . __('Edit this post') . "'>$post->post_title</a> in " . human_time_diff( current_time('timestamp', 1), strtotime($post->post_date_gmt) ) . "</li>";
|
echo "<li><a href='post.php?action=edit&post=$post->ID' title='" . __('Edit this post') . "'>$post->post_title</a> in " . human_time_diff( current_time('timestamp', 1), strtotime($post->post_date_gmt. ' GMT') ) . "</li>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user