Opened 8 years ago
Closed 8 years ago
#43480 closed enhancement (worksforme)
Add $gmt parameter to the_time() function
| Reported by: | paulschreiber | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Date/Time | Version: | 4.9.4 |
| Severity: | normal | Keywords: | has-patch reporter-feedback |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related #20973