From c572cc84321236f50a6ca51a18b9fd22eafdbb15 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Thu, 1 Apr 2004 23:09:22 +0000 Subject: [PATCH] checking against post_date_gmt instead of post_date makes more sense git-svn-id: http://svn.automattic.com/wordpress/trunk@1047 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-blog-header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-blog-header.php b/wp-blog-header.php index 83b8d74bdd..8b4e237304 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -404,11 +404,11 @@ if ($p == 'all') { $where = ''; } -$now = gmdate('Y-m-d H:i:59', time() + ($time_difference * 3600)); +$now = gmdate('Y-m-d H:i:59'); if ($pagenow != 'post.php' && $pagenow != 'edit.php') { if ((empty($poststart)) || (empty($postend)) || !($postend > $poststart)) { - $where .= " AND post_date <= '$now'"; + $where .= " AND post_date_gmt <= '$now'"; } $distinct = 'DISTINCT';