[wp-trac] [WordPress Trac] #37440: current_time function outputs local time when it should output GMT time
WordPress Trac
noreply at wordpress.org
Thu Aug 30 12:12:58 UTC 2018
#37440: current_time function outputs local time when it should output GMT time
--------------------------------------+-----------------------------
Reporter: bynicolas | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.0
Component: Date/Time | Version: 4.5.3
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"43594" 43594]:
{{{
#!CommitTicketReference repository="" revision="43594"
Date/Time: Make sure `current_time()` always calculates the offset from
GMT/UTC.
Previously, UTC context was implied, but could be unreliable due to being
affected by plugins.
Props Rarst, rahulsprajapati, marco.marsala.
Fixes #37440.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37440#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list