[wp-trac] [WordPress Trac] #28636: Add functions for working with local dates and times
WordPress Trac
noreply at wordpress.org
Thu Aug 29 23:17:40 UTC 2019
#28636: Add functions for working with local dates and times
-------------------------+-----------------------------
Reporter: mboynes | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.3
Component: Date/Time | Version: 2.9
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"45914" 45914]:
{{{
#!CommitTicketReference repository="" revision="45914"
Date/Time: Restore the previous behavior of `date_i18n()` where invalid
input would result in current time.
Make `wp_date()` return `false` on invalid timestamp input, for
consistency with upstream PHP `date()` function.
Props Rarst.
Fixes #28636.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28636#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list