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
This commit is contained in:
michelvaldrighi 2004-04-01 23:09:22 +00:00
parent 5b7829456c
commit c572cc8432
1 changed files with 2 additions and 2 deletions

View File

@ -404,11 +404,11 @@ if ($p == 'all') {
$where = ''; $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 ($pagenow != 'post.php' && $pagenow != 'edit.php') {
if ((empty($poststart)) || (empty($postend)) || !($postend > $poststart)) { if ((empty($poststart)) || (empty($postend)) || !($postend > $poststart)) {
$where .= " AND post_date <= '$now'"; $where .= " AND post_date_gmt <= '$now'";
} }
$distinct = 'DISTINCT'; $distinct = 'DISTINCT';