Making WordPress.org


Ignore:
Timestamp:
03/30/2015 07:20:48 AM (11 years ago)
Author:
dd32
Message:

Themes Directory: Use a better date format which handles cross-browser/non-us date formats better.
This fixes IE8 displaying it as NaN, and it displaying MM/DD/YYYY in Australia, adds a hint to prefer MMMM DD, YYYY formatting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php

    r1410 r1465  
    3333
    3434                <div class="theme-meta-info">
    35                     <p class="updated"><?php printf( __( 'Last updated: %s', 'wporg-themes' ), '<strong>{{ new Date( data.last_updated ).toLocaleDateString() }}</strong>' ); ?></p>
     35                    <p class="updated"><?php printf( __( 'Last updated: %s', 'wporg-themes' ), '<strong>{{ data.last_updated }}</strong>' ); ?></p>
    3636                    <# if ( data.theme_url ) { #>
    3737                    <a href="{{ data.theme_url }}"><?php _e( 'Theme Homepage', 'wporg-themes' ); ?></a>
Note: See TracChangeset for help on using the changeset viewer.