Make WordPress Core


Ignore:
Timestamp:
05/14/2009 02:00:32 AM (16 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-admin/edit-form-advanced.php

    r11312 r11323  
    4242
    4343    // Detect if there exists an autosave newer than the post and if that autosave is different than the post
    44     if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt ) > mysql2date( 'U', $post->post_modified_gmt ) ) {
     44    if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) {
    4545        foreach ( _wp_post_revision_fields() as $autosave_field => $_autosave_field ) {
    4646            if ( normalize_whitespace( $autosave->$autosave_field ) != normalize_whitespace( $post->$autosave_field ) ) {
Note: See TracChangeset for help on using the changeset viewer.