[wp-trac] [WordPress Trac] #40136: REST API: Issues with dates and DST
WordPress Trac
noreply at wordpress.org
Tue Mar 14 16:20:32 UTC 2017
#40136: REST API: Issues with dates and DST
---------------------------------------+-----------------------
Reporter: afercia | Owner: jnylen0
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.7.4
Component: REST API | Version: 4.7.3
Severity: major | Resolution:
Keywords: needs-refresh needs-patch | Focuses:
---------------------------------------+-----------------------
Comment (by jnylen0):
The existing function
[https://core.trac.wordpress.org/browser/tags/4.7.3/src/wp-
includes/formatting.php#L2980 get_gmt_from_date] looks like it will
probably do what we want. As @nerrad noted in Slack, we should make sure
there are adequate tests for DST conversions. These tests are probably
best written against `get_gmt_from_date` directly, for the most part.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40136#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list