Make WordPress Core

Changeset 41559


Ignore:
Timestamp:
09/21/2017 11:32:25 PM (7 years ago)
Author:
adamsilverstein
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/revision.php

    r38424 r41559  
    167167    foreach ( $revisions as $revision ) {
    168168        $modified = strtotime( $revision->post_modified );
    169         $modified_gmt = strtotime( $revision->post_modified_gmt );
     169        $modified_gmt = strtotime( $revision->post_modified_gmt . ' +0000' );
    170170        if ( $can_restore ) {
    171171            $restore_link = str_replace( '&', '&', wp_nonce_url(
Note: See TracChangeset for help on using the changeset viewer.