[wp-trac] [WordPress Trac] #31809: get_date_from_gmt returns time=zero when timezone is not set
WordPress Trac
noreply at wordpress.org
Fri Aug 23 11:03:01 UTC 2019
#31809: get_date_from_gmt returns time=zero when timezone is not set
--------------------------------------+-----------------------------
Reporter: goodevilgenius | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.3
Component: Date/Time | Version: 3.6
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"45887" 45887]:
{{{
#!CommitTicketReference repository="" revision="45887"
Date/Time: Rewrite and simplify `get_gmt_from_date()`,
`get_date_from_gmt()`, and `iso8601_to_datetime()` using `wp_timezone()`.
Improve unit test coverage.
Props Rarst, goodevilgenius.
Fixes #31809.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31809#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list