From 6e206c29733f63bf4b942c6c01c3f440c30c4907 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 17 Jan 2015 10:06:42 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/upgrade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php index b2354a7940..370992a239 100644 --- a/src/wp-admin/includes/upgrade.php +++ b/src/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' );