Make WordPress Core


Ignore:
Timestamp:
05/14/2009 02:00:32 AM (14 years ago)
Author:
ryan
Message:

Don't localize dates where not appropriate. Props Denis-de-Bernardy, hakre. fixes #9730

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r11305 r11323  
    14681468    if ( 'publish' == $post_status ) {
    14691469        $now = gmdate('Y-m-d H:i:59');
    1470         if ( mysql2date('U', $post_date_gmt) > mysql2date('U', $now) )
     1470        if ( mysql2date('U', $post_date_gmt, false) > mysql2date('U', $now, false) )
    14711471            $post_status = 'future';
    14721472    }
Note: See TracChangeset for help on using the changeset viewer.