From 768624cb99d900ec78343a88695ed35f2432e979 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 17 Jan 2015 10:07:23 +0000 Subject: [PATCH] Use the site's local time to create the first post during installation. props extendwings. fixes #29296. Built from https://develop.svn.wordpress.org/trunk@31225 git-svn-id: http://core.svn.wordpress.org/trunk@31206 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/upgrade.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index b2354a7940..370992a239 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -142,9 +142,9 @@ function wp_install_defaults( $user_id ) { $cat_tt_id = $wpdb->insert_id; // First post - $now = date('Y-m-d H:i:s'); - $now_gmt = gmdate('Y-m-d H:i:s'); - $first_post_guid = get_option('home') . '/?p=1'; + $now = current_time( 'mysql' ); + $now_gmt = current_time( 'mysql', 1 ); + $first_post_guid = get_option( 'home' ) . '/?p=1'; if ( is_multisite() ) { $first_post = get_site_option( 'first_post' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 6cb88ce0ae..4f6cae20e5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31224'; +$wp_version = '4.2-alpha-31225'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.