Make WordPress Core

Changeset 52203


Ignore:
Timestamp:
11/18/2021 09:23:51 AM (3 years ago)
Author:
audrasjb
Message:

Upgrade/Install: Add timezone info to last checked update time.

The time displayed on the Updates screen matches the server time which may not be the timezone the person viewing the page is in. This change includes the timezone information with the time.

Props mkaz.
Fixes #53554.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update-core.php

    r52197 r52203  
    10471047    echo '<p class="update-last-checked">';
    10481048    /* translators: 1: Date, 2: Time. */
    1049     printf( __( 'Last checked on %1$s at %2$s.' ), date_i18n( __( 'F j, Y' ), $last_update_check ), date_i18n( __( 'g:i a' ), $last_update_check ) );
     1049    printf( __( 'Last checked on %1$s at %2$s.' ), date_i18n( __( 'F j, Y' ), $last_update_check ), date_i18n( __( 'g:i a T' ), $last_update_check ) );
    10501050    echo ' <a href="' . esc_url( self_admin_url( 'update-core.php?force-check=1' ) ) . '">' . __( 'Check again.' ) . '</a>';
    10511051    echo '</p>';
Note: See TracChangeset for help on using the changeset viewer.