[wp-trac] [WordPress Trac] #48675: mysql2date adding timezone offset when given GMT time
WordPress Trac
noreply at wordpress.org
Mon Nov 25 10:10:44 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 fixed- | Focuses:
major |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"46774" 46774]:
{{{
#!CommitTicketReference repository="" revision="46774"
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.
Merges [46756] and [46757] to the 5.3 branch.
Fixes #48675.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48675#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list