Make WordPress Core

Changeset 31055


Ignore:
Timestamp:
01/06/2015 01:02:21 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Use localized format for Last Updated date on Add Plugins screen.

props tyxla.
fixes #30717.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php

    r30782 r31055  
    445445             */
    446446            $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin );
     447
     448            $date_format = __( 'M j, Y @ G:i' );
     449            $last_updated_timestamp = strtotime( $plugin['last_updated'] );
    447450        ?>
    448451        <div class="plugin-card">
     
    470473                </div>
    471474                <div class="column-updated">
    472                     <strong><?php _e( 'Last Updated:' ); ?></strong> <span title="<?php echo esc_attr( $plugin['last_updated'] ); ?>">
    473                         <?php printf( __( '%s ago' ), human_time_diff( strtotime( $plugin['last_updated'] ) ) ); ?>
     475                    <strong><?php _e( 'Last Updated:' ); ?></strong> <span title="<?php echo esc_attr( date_i18n( $date_format, $last_updated_timestamp ) ); ?>">
     476                        <?php printf( __( '%s ago' ), human_time_diff( $last_updated_timestamp ) ); ?>
    474477                    </span>
    475478                </div>
Note: See TracChangeset for help on using the changeset viewer.