From 2b57bde9f9775cfd8fc61391f4ed6c8b61f6c2a9 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 11 Feb 2005 01:21:43 +0000 Subject: [PATCH] Deal with timezone diff correctly git-svn-id: https://develop.svn.wordpress.org/trunk@2253 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/index.php b/wp-admin/index.php index 80dd6baffb..ae264918f7 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -39,7 +39,7 @@ if ( $scheduled = $wpdb->get_results("SELECT ID, post_title, post_date_gmt FROM foreach ($scheduled as $post) { if ($post->post_title == '') $post->post_title = sprintf(__('Post #%s'), $post->ID); - echo "
  • $post->post_title in " . human_time_diff( time(), strtotime($post->post_date_gmt) ) . "
  • "; + echo "
  • $post->post_title in " . human_time_diff( current_time('timestamp', 1), strtotime($post->post_date_gmt) ) . "
  • "; } ?>