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

props extendwings.
fixes #29296.

git-svn-id: https://develop.svn.wordpress.org/trunk@31225 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-01-17 10:06:42 +00:00
parent e7bf16b423
commit 6e206c2973

View File

@ -142,9 +142,9 @@ function wp_install_defaults( $user_id ) {
$cat_tt_id = $wpdb->insert_id; $cat_tt_id = $wpdb->insert_id;
// First post // First post
$now = date('Y-m-d H:i:s'); $now = current_time( 'mysql' );
$now_gmt = gmdate('Y-m-d H:i:s'); $now_gmt = current_time( 'mysql', 1 );
$first_post_guid = get_option('home') . '/?p=1'; $first_post_guid = get_option( 'home' ) . '/?p=1';
if ( is_multisite() ) { if ( is_multisite() ) {
$first_post = get_site_option( 'first_post' ); $first_post = get_site_option( 'first_post' );