[wp-trac] [WordPress Trac] #48675: mysql2date adding timezone offset when given GMT time
WordPress Trac
noreply at wordpress.org
Thu Nov 21 13:17:03 UTC 2019
#48675: mysql2date adding timezone offset when given GMT time
--------------------------------------+-----------------------------
Reporter: lisota | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.3.1
Component: Date/Time | Version: 5.3
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"46756" 46756]:
{{{
#!CommitTicketReference repository="" revision="46756"
Date/Time: Remove `mysql2date()` usage in `get_feed_build_date()` to
ensure the output includes correct timezone offset.
With the changes in [45908], `mysql2date()` works correctly for all local
time inputs, but should not be used for UTC time inputs.
Add a unit test.
Props Rarst, lisota.
Fixes #48675.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48675#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list