Make WordPress Core


Ignore:
Timestamp:
05/14/2009 02:00:32 AM (15 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-page-form.php

    r11312 r11323  
    4242    $form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />";
    4343    $autosave = wp_get_post_autosave( $post_ID );
    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        $notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) );
    4646}
Note: See TracChangeset for help on using the changeset viewer.