diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 92f56b7038..84cb32c6a3 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -89,7 +89,7 @@ $messages['post'] = array( 8 => sprintf( __('Post submitted. Preview post'), esc_url( add_query_arg( 'preview', 'true', $permalink ) ) ), 9 => sprintf( __('Post scheduled for: %1$s. Preview post'), /* translators: Publish box date format, see http://php.net/date */ - date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( $permalink ) ), + date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_date ) ), esc_url( $permalink ) ), 10 => sprintf( __('Post draft updated. Preview post'), esc_url( add_query_arg( 'preview', 'true', $permalink ) ) ), ); $messages['page'] = array( @@ -102,7 +102,7 @@ $messages['page'] = array( 6 => sprintf( __('Page published. View page'), esc_url( $permalink ) ), 7 => __('Page saved.'), 8 => sprintf( __('Page submitted. Preview page'), esc_url( add_query_arg( 'preview', 'true', $permalink ) ) ), - 9 => sprintf( __('Page scheduled for: %1$s. Preview page'), date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( $permalink ) ), + 9 => sprintf( __('Page scheduled for: %1$s. Preview page'), date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_date ) ), esc_url( $permalink ) ), 10 => sprintf( __('Page draft updated. Preview page'), esc_url( add_query_arg( 'preview', 'true', $permalink ) ) ), ); $messages['attachment'] = array_fill( 1, 10, __( 'Media attachment updated.' ) ); // Hack, for now. diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index fa04dcdefb..c27164ed08 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -100,7 +100,7 @@ if ( !defined('ABSPATH') )
%1$s'); $date = date_i18n( $datef, strtotime( $comment->comment_date ) ); ?> diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index 8a04b7f6a2..2a3a9399ed 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -546,7 +546,7 @@ class WP_Comments_List_Table extends WP_List_Table { } public function column_date() { - return get_comment_date( __( 'Y/m/d \a\t g:ia' ) ); + return get_comment_date( __( 'Y/m/d \a\t g:i a' ) ); } public function column_response() { diff --git a/wp-admin/includes/class-wp-plugin-install-list-table.php b/wp-admin/includes/class-wp-plugin-install-list-table.php index c2040bc504..5df06f48fc 100644 --- a/wp-admin/includes/class-wp-plugin-install-list-table.php +++ b/wp-admin/includes/class-wp-plugin-install-list-table.php @@ -446,7 +446,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { */ $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin ); - $date_format = __( 'M j, Y @ G:i' ); + $date_format = __( 'M j, Y @ H:i' ); $last_updated_timestamp = strtotime( $plugin['last_updated'] ); ?>
diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index c9c58289c3..6ea017d227 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -821,7 +821,7 @@ class WP_Posts_List_Table extends WP_List_Table { $t_time = $h_time = __( 'Unpublished' ); $time_diff = 0; } else { - $t_time = get_the_time( __( 'Y/m/d g:i:s A' ) ); + $t_time = get_the_time( __( 'Y/m/d g:i:s a' ) ); $m_time = $post->post_date; $time = get_post_time( 'G', true, $post ); diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index b5e13e3e0e..46cc2eb351 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -162,7 +162,7 @@ echo esc_html( $visibility_trans ); ?> ID ) { if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date $stamp = __('Scheduled for: %1$s'); @@ -293,7 +293,7 @@ function attachment_submit_meta_box( $post ) {
%1$s'); $date = date_i18n( $datef, strtotime( $post->post_date ) ); ?> diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php index 7ac3b0f019..a037db97b3 100644 --- a/wp-admin/includes/plugin-install.php +++ b/wp-admin/includes/plugin-install.php @@ -440,7 +440,7 @@ function install_plugin_information() { echo "
\n"; - $date_format = __( 'M j, Y @ G:i' ); + $date_format = __( 'M j, Y @ H:i' ); $last_updated_timestamp = strtotime( $api->last_updated ); ?>
diff --git a/wp-admin/includes/revision.php b/wp-admin/includes/revision.php index 9219f68f8d..67bb56c761 100644 --- a/wp-admin/includes/revision.php +++ b/wp-admin/includes/revision.php @@ -203,8 +203,8 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null 'id' => $revision->ID, 'title' => get_the_title( $post->ID ), 'author' => $authors[ $revision->post_author ], - 'date' => date_i18n( __( 'M j, Y @ G:i' ), $modified ), - 'dateShort' => date_i18n( _x( 'j M @ G:i', 'revision date short format' ), $modified ), + 'date' => date_i18n( __( 'M j, Y @ H:i' ), $modified ), + 'dateShort' => date_i18n( _x( 'j M @ H:i', 'revision date short format' ), $modified ), 'timeAgo' => sprintf( __( '%s ago' ), human_time_diff( $modified_gmt, $now_gmt ) ), 'autosave' => $autosave, 'current' => $current, @@ -221,8 +221,8 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null 'id' => $post->ID, 'title' => get_the_title( $post->ID ), 'author' => $authors[ $post->post_author ], - 'date' => date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_modified ) ), - 'dateShort' => date_i18n( _x( 'j M @ G:i', 'revision date short format' ), strtotime( $post->post_modified ) ), + 'date' => date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_modified ) ), + 'dateShort' => date_i18n( _x( 'j M @ H:i', 'revision date short format' ), strtotime( $post->post_modified ) ), 'timeAgo' => sprintf( __( '%s ago' ), human_time_diff( strtotime( $post->post_modified_gmt ), $now_gmt ) ), 'autosave' => false, 'current' => true, diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 960c4f0c26..15bfaaa021 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -18,7 +18,7 @@ if ( ! current_user_can( 'manage_options' ) ) $title = __('General Settings'); $parent_file = 'options-general.php'; /* translators: date and time format for exact current time, mainly about timezones, see http://php.net/date */ -$timezone_format = _x('Y-m-d G:i:s', 'timezone date format'); +$timezone_format = _x('Y-m-d H:i:s', 'timezone date format'); /** * Display JavaScript on the page. diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index eb794fa025..800a93d88a 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -1700,7 +1700,7 @@ function wp_post_revision_title( $revision, $link = true ) { return false; /* translators: revision date format, see http://php.net/date */ - $datef = _x( 'j F, Y @ G:i', 'revision date format'); + $datef = _x( 'F j, Y @ H:i', 'revision date format'); /* translators: 1: date */ $autosavef = _x( '%1$s [Autosave]', 'post revision title extra' ); /* translators: 1: date */ @@ -1736,7 +1736,7 @@ function wp_post_revision_title_expanded( $revision, $link = true ) { $author = get_the_author_meta( 'display_name', $revision->post_author ); /* translators: revision date format, see http://php.net/date */ - $datef = _x( 'j F, Y @ G:i:s', 'revision date format'); + $datef = _x( 'F j, Y @ H:i:s', 'revision date format'); $gravatar = get_avatar( $revision->post_author, 24 );