[wp-trac] [WordPress Trac] #28636: Add functions for working with local dates and times
WordPress Trac
noreply at wordpress.org
Sun Jan 18 11:46:14 UTC 2015
#28636: Add functions for working with local dates and times
-----------------------------------+------------------
Reporter: mboynes | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.2
Component: Date/Time | Version: 2.9
Severity: normal | Resolution:
Keywords: 2nd-opinion has-patch | Focuses:
-----------------------------------+------------------
Comment (by SergeyBiryukov):
I wonder if we could reuse [source:tags/4.1/src/wp-
includes/formatting.php#L225 get_date_from_gmt()] for `wp_date()`:
{{{
function wp_date( $format, $timestamp = false ) {
if ( ! $timestamp ) {
$timestamp = time();
}
return get_date_from_gmt( date( 'Y-m-d H:i:s', $timestamp ),
$format );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28636#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list