[wp-trac] [WordPress Trac] #43480: Add $gmt parameter to the_time() function

WordPress Trac noreply at wordpress.org
Tue Mar 6 16:46:59 UTC 2018


#43480: Add $gmt parameter to the_time() function
---------------------------+-----------------------------
 Reporter:  paulschreiber  |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Date/Time      |    Version:  4.9.4
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 It would be helpful to add a $gmt parameter to the_time().

 calling:
 {{{
 the_time( 'c', true );
 }}}

 is cleaner/easier than:
 {{{
 echo esc_attr( get_post_time( 'c', true ) );
 }}}

 Use case:
 This format of timestamp is required for microformats metadata.

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


More information about the wp-trac mailing list