[wp-trac] [WordPress Trac] #21653: Introduce current_date()
WordPress Trac
noreply at wordpress.org
Thu Feb 13 00:41:23 UTC 2014
#21653: Introduce current_date()
------------------------------+------------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: Awaiting Review
Component: Date/Time | Version:
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
------------------------------+------------------------------
Changes (by nacin):
* keywords: has-patch => has-patch commit
Comment:
I like danielbachhuber's approach.
Without current_date(), current_date_i18n() seems out of place. And,
date_i18n() with only one argument already operates on the current, local
timestamp (it has an optional gmt flag as well), so it's not needed.
I doubt current_time() has unit tests, but it'd be nice.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21653#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list