Title: Reformatting WordPress Admin Table Time
Last modified: July 26, 2018

---

# Reformatting WordPress Admin Table Time

 *  Resolved [rwfelty](https://wordpress.org/support/users/rwfelty/)
 * (@rwfelty)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/reformatting-wordpress-admin-table-time/)
 * I am attempting to reformat the time in WordPress admin tables and using this
   code snippet. What am I doing wrong?
 *     ```
       function my_lmt_defaults( $d ) {
   
           $d['contexts']['messages']['timef'] = 'm/j/Y \a\t g:ia';
   
           return $d;
       }
       add_filter('last_modified_timestamp_defaults','my_lmt_defaults');
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [Evan Mattson](https://wordpress.org/support/users/aaemnnosttv/)
 * (@aaemnnosttv)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/reformatting-wordpress-admin-table-time/#post-10870263)
 * The timestamp is broken into 3 components: date format (datef), time format (
   timef), and the separator (sep).
 * Here it looks like you’re trying to override the whole format with a new date
   string but you’re only changing the time format. By default, it displays `%date%%
   sep% %time%`
 * Your filter works but you would want to change it to modify each component like
   so:
 *     ```
       $d['contexts']['messages']['datef'] = 'm/j/Y';
       $d['contexts']['messages']['timef'] = 'g:ia';
       $d['contexts']['messages']['sep'] = 'at';
       ```
   
 * [https://cl.ly/e6334989ead1](https://cl.ly/e6334989ead1)

Viewing 1 replies (of 1 total)

The topic ‘Reformatting WordPress Admin Table Time’ is closed to new replies.

 * ![](https://ps.w.org/last-modified-timestamp/assets/icon-256x256.jpg?rev=3200533)
 * [Last Modified Timestamp](https://wordpress.org/plugins/last-modified-timestamp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/last-modified-timestamp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/last-modified-timestamp/)
 * [Active Topics](https://wordpress.org/support/plugin/last-modified-timestamp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/last-modified-timestamp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Evan Mattson](https://wordpress.org/support/users/aaemnnosttv/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/reformatting-wordpress-admin-table-time/#post-10870263)
 * Status: resolved