[wp-trac] [WordPress Trac] #20328: get_date_from_gmt assumes current gmt_offset is appropriate
WordPress Trac
wp-trac at lists.automattic.com
Thu Mar 29 22:02:25 UTC 2012
#20328: get_date_from_gmt assumes current gmt_offset is appropriate
---------------------------+-----------------------------
Reporter: scottconnerly | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version:
Severity: normal | Keywords:
---------------------------+-----------------------------
For locations that have daylight savings time, the gmt_offset changes over
time. Yet get_date_from_gmt assumes the offset that is in effect now is
always the right offset. But I might be trying to display date/times that
are in a different timezone transition than the current one.
Proposed fix is to use timezone_transitions_get() as wp-admin/options-
general.php does in order to translate those date/times accurately.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20328>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list