[wp-trac] [WordPress Trac] #40653: Use PHP `DateTime` class API in `current_time()`

WordPress Trac noreply at wordpress.org
Thu May 4 10:01:23 UTC 2017

#40653: Use PHP `DateTime` class API in `current_time()`
 Reporter:  jdgrimes                    |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Date/Time                   |     Version:  1.0
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:

Comment (by Rarst):

 That `Etc/*` conversion method for `gmt_offset` case is unreliable (won't
 handle half–hour cases for example).

 For my take on it see my `WpDateTime` lib:

Ticket URL: <https://core.trac.wordpress.org/ticket/40653#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list