Format date in log viewer table

This commit is contained in:
Jon Surrell 2016-12-21 22:27:09 +01:00
parent fbd91fe376
commit 588b1c2267
1 changed files with 4 additions and 1 deletions

View File

@ -93,7 +93,10 @@ class WC_Admin_Log_Table_List extends WP_List_Table {
* @return string
*/
public function column_timestamp( $log ) {
return esc_html( mysql2date( 'c', $log['timestamp'] ) );
return esc_html( mysql2date(
get_option( 'date_format' ) . ' ' . get_option( 'time_format' ),
$log['timestamp']
) );
}
/**