[wp-trac] [WordPress Trac] #35053: XML-RPC when post with date_created_gmt, its post_date will gmt date not local date
WordPress Trac
noreply at wordpress.org
Wed Dec 30 04:11:29 UTC 2015
#35053: XML-RPC when post with date_created_gmt, its post_date will gmt date not
local date
------------------------------------------+-----------------------------
Reporter: hnle | Owner: wonderboymusic
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.4.1
Component: XML-RPC | Version: 4.4
Severity: normal | Resolution:
Keywords: has-unit-tests needs-testing | Focuses:
------------------------------------------+-----------------------------
Changes (by dossy):
* keywords: has-unit-tests needs-patch => has-unit-tests needs-testing
Comment:
Replying to [comment:5 redsweater]:
> The same commit [34681] also changed the behavior of dates specified
with the "date_created" key, such that the date is set on the server to
the dateCreated value without regard for its time zone information. For
example, a post that is edited and set to a date: [...]
>
> The patch supplied with this ticket does not yet fix the behavior for
the dateCreated case.
I added new tests to cover this case (`dateCreated` value is an ISO-8601
date with a timezone specified) and updated the code to handle it
correctly in attachment:35053-2.patch, which builds on top of @hnle's
previous work.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35053#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list