When posting to a Drupal blog via the XML-RPC interface, valid iso8601-format dates are incorrectly parsed because Drupal assumes that the time is in the same timezone as the user's blog. For example, if my blog's timezone is set as -0500, and my blogging client sends the date 2008-01-15T12:00:00Z, Drupal interprets this as January 15, 2008 12:00:00 -0500, instead of January 15, 2008 07:00:00 -0500.
The relevant code appears to be the xmlrpc_date function in includes/xmlrpc.inc, lines 393-400. Notice that it doesn't account for anything other than the first 14 characters, and doesn't check for "Z" (signifies the timestamp is UTC) or for any timezone offset (such as +07:00 or -02:00) at the end.
This bug is negatively impacting Drupal users who use ScribeFire to post to their blogs, please fix ASAP.
Comments
Comment #1
kadubr commentedDrupal Team have a date to correct this issue?
Comment #2
miiimoooI think this is related to core, not the xmlrpc_api module. Probably better to report it there.