WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/23/2015 02:13:50 AM (5 years ago)
Author:
dd32
Message:

Remove ambiguity in the time display format in core, switches to using 24hr notation where am/pm isn't specified.

  • H:i - 09:54
  • g:i a - 9:54 am
  • F j, Y - January 3, 2015

These shouldn't be used without a/A (am/AM)

  • h:i - 01:23
  • G:i - 1:23

Props iseulde. Fixes #31121

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r31754 r31862  
    17011701
    17021702    /* translators: revision date format, see http://php.net/date */
    1703     $datef = _x( 'j F, Y @ G:i', 'revision date format');
     1703    $datef = _x( 'F j, Y @ H:i', 'revision date format');
    17041704    /* translators: 1: date */
    17051705    $autosavef = _x( '%1$s [Autosave]', 'post revision title extra' );
     
    17371737    $author = get_the_author_meta( 'display_name', $revision->post_author );
    17381738    /* translators: revision date format, see http://php.net/date */
    1739     $datef = _x( 'j F, Y @ G:i:s', 'revision date format');
     1739    $datef = _x( 'F j, Y @ H:i:s', 'revision date format');
    17401740
    17411741    $gravatar = get_avatar( $revision->post_author, 24 );
Note: See TracChangeset for help on using the changeset viewer.