[wp-trac] [WordPress Trac] #47464: Introduce current_datetime() for better time operations

WordPress Trac noreply at wordpress.org
Fri Aug 23 01:11:32 UTC 2019


#47464: Introduce current_datetime() for better time operations
-------------------------+-----------------------------
 Reporter:  Rarst        |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  5.3
Component:  Date/Time    |     Version:
 Severity:  minor        |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"45883" 45883]:
 {{{
 #!CommitTicketReference repository="" revision="45883"
 Date/Time: Introduce `current_datetime()` for better time operations.

 Returning a `DateTimeImmutable` representation of the current moment in
 time, this allows for a more flexible and reliable use than
 `current_time()` provides.

 Props Rarst.
 Fixes #47464.
 }}}

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


More information about the wp-trac mailing list