[wp-trac] [WordPress Trac] #30429: wp.newPost gets non-GMT date calculation wrong
WordPress Trac
noreply at wordpress.org
Tue Aug 18 04:12:05 UTC 2015
#30429: wp.newPost gets non-GMT date calculation wrong
-------------------------------------------------+-------------------------
Reporter: smerriman | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: XML-RPC | Review
Severity: critical | Version: 3.4
Keywords: has-patch needs-testing needs-unit- | Resolution:
tests | Focuses:
-------------------------------------------------+-------------------------
Comment (by smerriman):
Here's an updated patch which should fix the problem properly (and also
updates a few other similar places in the same file). It converts the ISO
date to the date variable directly; then uses `get_gmt_from_date` to
calculate the GMT date, rather than the opposite way around. That avoids
complications with timezones.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30429#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list