Make WordPress Core

Ticket #29296: 1.diff

File 1.diff, 511 bytes (added by extendwings, 10 years ago)
  • wp-admin/includes/upgrade.php

    diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php
    index a455841..14766c6 100644
    a b function wp_install_defaults( $user_id ) { 
    140140        $cat_tt_id = $wpdb->insert_id;
    141141
    142142        // First post
    143         $now = date('Y-m-d H:i:s');
    144         $now_gmt = gmdate('Y-m-d H:i:s');
     143        $now = current_time( 'mysql' );
     144        $now_gmt = current_time( 'mysql', 1 );
    145145        $first_post_guid = get_option('home') . '/?p=1';
    146146
    147147        if ( is_multisite() ) {