Opened 7 years ago
Closed 7 years ago
#43480 closed enhancement (worksforme)
Add $gmt parameter to the_time() function
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.9.4 |
Component: | Date/Time | Keywords: | has-patch reporter-feedback |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Related #20973