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

WordPress Trac noreply at wordpress.org
Sun Jan 25 11:51:04 UTC 2015


#31121: Add leading zeros to 24 hour date formats
--------------------------+-----------------
 Reporter:  iseulde       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.2
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------
 There are a lot of occurrences in core where we use `G:i` for a 24 hour
 time format. This leads to weird things like `0:11` and `1:22:33`. In
 general we should never use the `G` for displaying dates. `g` should be
 used for 12 hour time formats since it's a value between 1 and 12. Either
 it's `H:i` or `g:i`.

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


More information about the wp-trac mailing list