[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
Mon Dec 14 17:10:26 UTC 2015
#35053: XML-RPC when post with date_created_gmt, its post_date will gmt date not
local date
----------------------------------------+--------------------
Reporter: hnle | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4.1
Component: XML-RPC | Version: 4.4
Severity: normal | Resolution:
Keywords: has-unit-tests needs-patch | Focuses:
----------------------------------------+--------------------
Changes (by hnle):
* keywords: has-patch has-unit-tests => has-unit-tests needs-patch
Comment:
Yes, I also it is in the mind.
It is because `iso8601_to_datetime`'s result (`$timezone == 'user'`)
does'nt take into account the time zone.
Which the better way or other?
- Change `iso8601_to_datetime`
- revert and use `iso8601_to_datetime` second arg `'gmt'` : It should meen
the way of [34681] was wrong. (but good effect to think)
:)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35053#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list