diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index bb03b09ddf..2c1149181d 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -589,9 +589,16 @@ if ( 'upgrade-core' == $action ) { echo '

'; } + $last_update_check = false; + $current = get_site_transient( 'update_core' ); + + if ( $current && isset ( $current->last_checked ) ) { + $last_update_check = $current->last_checked + get_option( 'gmt_offset' ) * HOUR_IN_SECONDS; + } + echo '

'; /* translators: %1 date, %2 time. */ - printf( __( 'Last checked on %1$s at %2$s.' ), date_i18n( __( 'F j, Y' ) ), date_i18n( __( 'g:i a' ) ) ); + 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 ) ); echo '   ' . __( 'Check Again' ) . ''; echo '

';