[wp-trac] [WordPress Trac] #40653: Use PHP `DateTime` class API in `current_time()`
WordPress Trac
noreply at wordpress.org
Thu May 4 12:46:15 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 jdgrimes):
Replying to [comment:3 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:
https://github.com/Rarst/wpdatetime/blob/master/php/WpDateTimeZone.php
Thanks for pointing that out. I suspected that there was an issue there
and was planing to take a closer look at that today. I've updated the
patch, see [attachment:40653.diff].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40653#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list