[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
Sun Jan 3 17:54:00 UTC 2016


#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-patch commit revert  |     Focuses:
-------------------------------------+-----------------------------

Comment (by dossy):

 Replying to [comment:27 nacin]:
 [...]
 > This actually isn't necessary. You're right that `tearDown()` is
 normally the correct approach, but our own `WP_UnitTestCase` rolls back DB
 writes as well as the local object cache, so you don't need to restore
 option values.

 Ah, that's very cool.  I just assumed that since @hnle's
 [attachment:35053.patch original patch] stashed and restored the
 `timezone_string` option value that it needed to be done explicitly in
 each test.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35053#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list