Make WordPress Core


Ignore:
Timestamp:
03/23/2015 02:13:50 AM (10 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-admin/includes/meta-boxes.php

    r31830 r31862  
    163163<?php
    164164/* translators: Publish box date format, see http://php.net/date */
    165 $datef = __( 'M j, Y @ G:i' );
     165$datef = __( 'M j, Y @ H:i' );
    166166if ( 0 != $post->ID ) {
    167167    if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date
     
    294294    <?php
    295295    /* translators: Publish box date format, see http://php.net/date */
    296     $datef = __( 'M j, Y @ G:i' );
     296    $datef = __( 'M j, Y @ H:i' );
    297297    $stamp = __('Uploaded on: <b>%1$s</b>');
    298298    $date = date_i18n( $datef, strtotime( $post->post_date ) );
Note: See TracChangeset for help on using the changeset viewer.