[wp-trac] [WordPress Trac] #40653: Use PHP `DateTime` class API in `current_time()`
WordPress Trac
noreply at wordpress.org
Tue Jun 26 12:25:40 UTC 2018
#40653: Use PHP `DateTime` class API in `current_time()`
----------------------------------------+------------------------------
Reporter: jdgrimes | Owner: (none)
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):
By now I believe we need to be deprecating this function. Some minimal
effort to patch up the most wrong cases is in order, but it's just one of
the worst pieces of WP’s old offset-centric time zone design. The function
just does too much and most of it in a wrong way.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40653#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list