From e92db998d2a6ae5c837741c49e2007ce9199f70c Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Thu, 21 Sep 2017 23:32:25 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@41559 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/revision.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/revision.php b/src/wp-admin/includes/revision.php index 9edf52d2a0..5a765cb8da 100644 --- a/src/wp-admin/includes/revision.php +++ b/src/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(