[wp-trac] [WordPress Trac] #48384: get_post_time returns wrong value after timezone switch
WordPress Trac
noreply at wordpress.org
Fri Oct 25 14:31:25 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 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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48384#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list