Make WordPress Core


Ignore:
Timestamp:
04/01/2004 11:09:22 PM (22 years ago)
Author:
michelvaldrighi
Message:

checking against post_date_gmt instead of post_date makes more sense

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-blog-header.php

    r1043 r1047  
    405405}
    406406
    407 $now = gmdate('Y-m-d H:i:59', time() + ($time_difference * 3600));
     407$now = gmdate('Y-m-d H:i:59');
    408408
    409409if ($pagenow != 'post.php' && $pagenow != 'edit.php') {
    410410    if ((empty($poststart)) || (empty($postend)) || !($postend > $poststart)) {
    411         $where .= " AND post_date <= '$now'";
     411        $where .= " AND post_date_gmt <= '$now'";
    412412    }
    413413
Note: See TracChangeset for help on using the changeset viewer.