[wp-trac] [WordPress Trac] #13173: get_date_from_gmt does not properly convert non-DST dates when DST is in effect and vice versa.
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 29 01:57:25 UTC 2010
#13173: get_date_from_gmt does not properly convert non-DST dates when DST is in
effect and vice versa.
--------------------------+-------------------------------------------------
Reporter: cfinke | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Date/Time | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
If it is May 1 where I am and daylight-savings time is in effect, and I
schedule a post for December 1 at noon (when DST is not in effect) via
XML-RPC using the date_created_gmt parameter, my post will actually be
scheduled for December 1 at 1pm. This is due to the fact that
get_date_from_gmt uses the current timezone offset to convert the date
from GMT to local time rather than the timezone offset specific to the
date it is converting.
The root issue I suppose is that get_option('gmt_offset') doesn't know
when it's getting the gmt_offset for. Fixing that would probably fix a
number of other daylight-savings time related issues in Wordpress.
Tested in Wordpress 2.9.2 and the current Wordpress.com.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13173>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list