[wp-trac] [WordPress Trac] #48384: get_post_time returns wrong value after timezone switch

WordPress Trac noreply at wordpress.org
Fri Oct 25 15:07:13 UTC 2019


#48384: get_post_time returns wrong value after timezone switch
--------------------------------------+-----------------------------
 Reporter:  david.binda               |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  reopened
 Priority:  normal                    |   Milestone:  5.3
Component:  Date/Time                 |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:29 Rarst]:
 > From a quick look (hadn't run yet) it's likely that you need to
 explicitly delete `timezone_string` if you want to test `gmt_offset`,
 otherwise current value of `timezone_string` will always override whatever
 you set `gmt_offset` to.

 Thanks! I thought I removed that test as per comment:9, but apparently
 confused my checkouts :)

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


More information about the wp-trac mailing list