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

WordPress Trac noreply at wordpress.org
Tue Aug 27 07:14:59 UTC 2019


#28636: Add functions for working with local dates and times
-------------------------+---------------------
 Reporter:  mboynes      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:
Component:  Date/Time    |     Version:  2.9
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+---------------------
Changes (by Rarst):

 * keywords:   => has-patch


Comment:

 Extracted date localization logic into a new `wp_date()` function, with
 saner API using real timestamps and arbitrary time zone. Changed
 `date_i18n()` to a wrapper around it and cleaned up logic a bit for
 clarity.

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


More information about the wp-trac mailing list