[wp-trac] [WordPress Trac] #51918: I18n - Application Passwords table dates

WordPress Trac noreply at wordpress.org
Wed Dec 2 16:15:21 UTC 2020


#51918: I18n - Application Passwords table dates
---------------------------+-----------------------------
 Reporter:  pedromendonca  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  I18N           |    Version:  5.6
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 Hi, in the **Application Passwords** table, there are some dates missing
 i18n in:

 `echo gmdate( get_option( 'date_format', 'r' ), $item['created'] );`
 Source: https://github.com/WordPress/wordpress-develop/blob/master/src/wp-
 admin/includes/class-wp-application-passwords-list-table.php#L71

 `echo gmdate( get_option( 'date_format', 'r' ), $item['last_used'] );`
 Source: https://github.com/WordPress/wordpress-develop/blob/master/src/wp-
 admin/includes/class-wp-application-passwords-list-table.php#L86

 Would it be ok to change `gmdate()` to `date_i18n()`?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51918>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list