[wp-trac] [WordPress Trac] #30429: wp.newPost gets non-GMT date calculation wrong
WordPress Trac
noreply at wordpress.org
Tue Sep 29 04:04:18 UTC 2015
#30429: wp.newPost gets non-GMT date calculation wrong
----------------------------------------+-----------------------------
Reporter: smerriman | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.4
Component: XML-RPC | Version: 3.4
Severity: critical | Resolution: fixed
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"34681"]:
{{{
#!CommitTicketReference repository="" revision="34681"
XML-RPC: calculate the proper offset for GMT in `wp.newPost`,
`mw.newPost`, and `mw.editPost` when `post_date` is set, `wp.editComment`
when `comment_date` is set. `post|comment_date` is assumed to be GMT. This
is only true if the timezone string for the site matches GMT.
Adds unit tests for each.
Props smerriman, justdaiv, wonderboymusic.
Fixes #30429.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30429#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list