[wp-trac] [WordPress Trac] #31121: Add leading zeros to 24 hour date formats

WordPress Trac noreply at wordpress.org
Fri Jan 30 00:16:15 UTC 2015


#31121: Add leading zeros to 24 hour date formats
--------------------------+------------------------
 Reporter:  iseulde       |       Owner:  dd32
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  4.2
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------
Changes (by dd32):

 * keywords:  has-patch dev-feedback => has-patch


Comment:

 Agreed. We should only be using either of:
 - `H:i - [00-23]:[00-59]`
 - `g:i a - [1-12]:[00-59] [am-pm]`

 which the patch does, I also agree on a space between minutes and the
 meridiem?

 The following shouldn't be used:
 - `h - [0-23]`
 - `G  - [00-12]` (especially not without the meridiem specified)

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


More information about the wp-trac mailing list