get_date_from_gmt does not properly convert non-DST dates when DST is in effect and vice versa.
|Reported by:||cfinke||Owned by:|
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.