[wp-trac] [WordPress Trac] #44267: Privacy Request List Table: A way to show the time of request when it's older than 24 hours.

WordPress Trac noreply at wordpress.org
Mon Oct 15 17:29:44 UTC 2018


#44267: Privacy Request List Table: A way to show the time of request when it's
older than 24 hours.
------------------------------+--------------------------------------------
 Reporter:  birgire           |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Future Release
Component:  Privacy           |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch needs-  |     Focuses:  accessibility, administration
  testing                     |
------------------------------+--------------------------------------------

Comment (by garrett-eclipse):

 Hi @birgire reviewing core implementations I'd suggest adopting the format
 found in the Comments table;
 https://github.com/WordPress/WordPress/blob/4.9.8/wp-admin/includes/class-
 wp-comments-list-table.php#L717-L740

 This provides the default en_US standard for date time and makes it
 translatable as well as places the word 'at' between date and time.

 With the use of word based month instead of numeric you'll end with
 varying lengths which can affect the table widths.

 In the other list tables for posts, etc they provide a slightly different
 format for the time portion but all dates are the same 'Y/m/d'; [[BR]]
 https://github.com/WordPress/WordPress/blob/4.9.8/wp-admin/includes/class-
 wp-media-list-table.php#L432-L457 [[BR]]
 https://github.com/WordPress/WordPress/blob/4.9.8/wp-admin/includes/class-
 wp-ms-sites-list-table.php#L340-L384 [[BR]]
 https://github.com/WordPress/WordPress/blob/4.9.8/wp-admin/includes/class-
 wp-ms-users-list-table.php#L278-L295 [[BR]]
 https://github.com/WordPress/WordPress/blob/4.9.8/wp-admin/includes/class-
 wp-posts-list-table.php#L962-L1040 [[BR]]
 *In most of the above the datetime is formatted as 'Y/m/d g:i:s a'

 Although there's more conventions as 'Y/m/d g:i:s a' rather than 'Y/m/d at
 g:i a' I would drop the seconds and follow the convention presented in
 comments list table as comments similar to requests are seen as more user
 submitted rather than admin created so following that over the posts
 datetime convention would make more sense.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44267#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list