checking against post_date_gmt instead of post_date makes more sense

git-svn-id: https://develop.svn.wordpress.org/trunk@1047 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
michelvaldrighi 2004-04-01 23:09:22 +00:00
parent 63fc518ac9
commit ba4226d821
1 changed files with 2 additions and 2 deletions

View File

@ -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';