From 415e9379f931ab7d6bf3b18a781c520c295903c0 Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Thu, 21 Sep 2017 23:33:44 +0000 Subject: [PATCH] Revisions: correct a timezone display issue. When preparing the data for the revisions screen, add ' +0000' to the gmt date string before passing it thru `strtotime`. Props biranit, nacin, buley. Fixes #25365. Built from https://develop.svn.wordpress.org/trunk@41559 git-svn-id: http://core.svn.wordpress.org/trunk@41392 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/revision.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/revision.php b/wp-admin/includes/revision.php index 9edf52d2a0..5a765cb8da 100644 --- a/wp-admin/includes/revision.php +++ b/wp-admin/includes/revision.php @@ -166,7 +166,7 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null foreach ( $revisions as $revision ) { $modified = strtotime( $revision->post_modified ); - $modified_gmt = strtotime( $revision->post_modified_gmt ); + $modified_gmt = strtotime( $revision->post_modified_gmt . ' +0000' ); if ( $can_restore ) { $restore_link = str_replace( '&', '&', wp_nonce_url( add_query_arg( diff --git a/wp-includes/version.php b/wp-includes/version.php index 1e5c8b3f10..7742b876a5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41558'; +$wp_version = '4.9-alpha-41559'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.