Skip to content

Commit 63c4690

Browse files
committed
Display authorization time
1 parent 43b5e3c commit 63c4690

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

inc/admin/profile/namespace.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@ function render_profile_section( WP_User $user ) {
5656
function render_token_row( WP_User $user, Access_Token $token ) {
5757
$client = $token->get_client();
5858

59+
$creation_time = $token->get_creation_time();
5960
$details = [
6061
sprintf(
61-
/* translators: %s: formatted date */
62-
esc_html__( 'Authorized %s', 'oauth2' ),
63-
date( get_option( 'date_format' ), $token->get_creation_time() )
62+
/* translators: %1$s: formatted date, %2$s: formatted time */
63+
esc_html__( 'Authorized %1$s at %2$s', 'oauth2' ),
64+
date( get_option( 'date_format' ), $creation_time ),
65+
date( get_option( 'time_format' ), $creation_time )
6466
),
6567
];
6668

0 commit comments

Comments
 (0)