Make WordPress Core


Ignore:
Timestamp:
01/17/2015 10:06:42 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Use the site's local time to create the first post during installation.

props extendwings.
fixes #29296.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/upgrade.php

    r31213 r31225  
    143143
    144144    // First post
    145     $now = date('Y-m-d H:i:s');
    146     $now_gmt = gmdate('Y-m-d H:i:s');
    147     $first_post_guid = get_option('home') . '/?p=1';
     145    $now = current_time( 'mysql' );
     146    $now_gmt = current_time( 'mysql', 1 );
     147    $first_post_guid = get_option( 'home' ) . '/?p=1';
    148148
    149149    if ( is_multisite() ) {
Note: See TracChangeset for help on using the changeset viewer.