[wp-trac] [WordPress Trac] #48384: get_post_time returns wrong value after timezone switch
WordPress Trac
noreply at wordpress.org
Mon Oct 21 15:46:52 UTC 2019
#48384: get_post_time returns wrong value after timezone switch
--------------------------+------------------------------
Reporter: david.binda | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by Rarst):
The time zone change is messed up altogether, see #38774 for general
issue.
I'll take a look at GMT regression, but essentially at the moment we are
just tweaking how it's broken since we can't fix it.
I prioritized UTC time in my external lib, but went with local time for
base in code since that is existing behavior ''and'' there are weird logic
bits in some places that depend on UTC time being or not being set in
database.
But basically if you change WP time zone you break time on the site. :\
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48384#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list