Make WordPress Core

Ticket #9588: 9588.3.diff

File 9588.3.diff, 770 bytes (added by Denis-de-Bernardy, 16 years ago)

third one in template.php

  • wp-admin/includes/template.php

     
    25122512
    25132513        // echo '<label for="timestamp" style="display: block;"><input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp"'.$tab_index_attribute.' /> '.__( 'Edit timestamp' ).'</label><br />';
    25142514
    2515         $time_adj = time() + (get_option( 'gmt_offset' ) * 3600 );
     2515        $time_adj = current_time('timestamp');
    25162516        $post_date = ($for_post) ? $post->post_date : $comment->comment_date;
    25172517        $jj = ($edit) ? mysql2date( 'd', $post_date ) : gmdate( 'd', $time_adj );
    25182518        $mm = ($edit) ? mysql2date( 'm', $post_date ) : gmdate( 'm', $time_adj );