[wp-trac] [WordPress Trac] #28636: Add functions for working with local dates and times

WordPress Trac noreply at wordpress.org
Wed Aug 28 00:51:27 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:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"45901" 45901]:
 {{{
 #!CommitTicketReference repository="" revision="45901"
 Date/Time: Introduce `wp_date()` to retrieve the date in localized format.

 Convert `date_i18n()` into a wrapper for `wp_date()`.

 `wp_date()` is intended as a replacement for `date_i18n()` without legacy
 quirks in it. It accepts a true Unix timestamp (not summed with timezone
 offset) and an arbitrary timezone.

 Props Rarst, mboynes, MikeHansenMe, rmccue, nacin.
 Fixes #28636.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/28636#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list