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/includes/template.php

    r11322 r11323  
    12991299    <div class="ping_status">' . $post->ping_status . '</div>
    13001300    <div class="_status">' . $post->post_status . '</div>
    1301     <div class="jj">' . mysql2date( 'd', $post->post_date ) . '</div>
    1302     <div class="mm">' . mysql2date( 'm', $post->post_date ) . '</div>
    1303     <div class="aa">' . mysql2date( 'Y', $post->post_date ) . '</div>
    1304     <div class="hh">' . mysql2date( 'H', $post->post_date ) . '</div>
    1305     <div class="mn">' . mysql2date( 'i', $post->post_date ) . '</div>
    1306     <div class="ss">' . mysql2date( 's', $post->post_date ) . '</div>
     1301    <div class="jj">' . mysql2date( 'd', $post->post_date, false ) . '</div>
     1302    <div class="mm">' . mysql2date( 'm', $post->post_date, false ) . '</div>
     1303    <div class="aa">' . mysql2date( 'Y', $post->post_date, false ) . '</div>
     1304    <div class="hh">' . mysql2date( 'H', $post->post_date, false ) . '</div>
     1305    <div class="mn">' . mysql2date( 'i', $post->post_date, false ) . '</div>
     1306    <div class="ss">' . mysql2date( 's', $post->post_date, false ) . '</div>
    13071307    <div class="post_password">' . wp_specialchars($post->post_password, 1) . '</div>';
    13081308
     
    25332533    $time_adj = time() + (get_option( 'gmt_offset' ) * 3600 );
    25342534    $post_date = ($for_post) ? $post->post_date : $comment->comment_date;
    2535     $jj = ($edit) ? mysql2date( 'd', $post_date ) : gmdate( 'd', $time_adj );
    2536     $mm = ($edit) ? mysql2date( 'm', $post_date ) : gmdate( 'm', $time_adj );
    2537     $aa = ($edit) ? mysql2date( 'Y', $post_date ) : gmdate( 'Y', $time_adj );
    2538     $hh = ($edit) ? mysql2date( 'H', $post_date ) : gmdate( 'H', $time_adj );
    2539     $mn = ($edit) ? mysql2date( 'i', $post_date ) : gmdate( 'i', $time_adj );
    2540     $ss = ($edit) ? mysql2date( 's', $post_date ) : gmdate( 's', $time_adj );
     2535    $jj = ($edit) ? mysql2date( 'd', $post_date, false ) : gmdate( 'd', $time_adj );
     2536    $mm = ($edit) ? mysql2date( 'm', $post_date, false ) : gmdate( 'm', $time_adj );
     2537    $aa = ($edit) ? mysql2date( 'Y', $post_date, false ) : gmdate( 'Y', $time_adj );
     2538    $hh = ($edit) ? mysql2date( 'H', $post_date, false ) : gmdate( 'H', $time_adj );
     2539    $mn = ($edit) ? mysql2date( 'i', $post_date, false ) : gmdate( 'i', $time_adj );
     2540    $ss = ($edit) ? mysql2date( 's', $post_date, false ) : gmdate( 's', $time_adj );
    25412541
    25422542    $cur_jj = gmdate( 'd', $time_adj );
Note: See TracChangeset for help on using the changeset viewer.