[wp-trac] [WordPress Trac] #19733: XML-RPC returns invalid dates if the date is zero

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 4 19:26:58 UTC 2012


#19733: XML-RPC returns invalid dates if the date is zero
------------------------------+------------------
 Reporter:  koke              |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.4
Component:  XML-RPC           |     Version:  3.3
 Severity:  normal            |  Resolution:
 Keywords:  has-patch mobile  |
------------------------------+------------------

Comment (by koke):

 Also, IXR_Date doesn't like "weird" dates.

 * mysql2date returns {{{-00011130T00:00:00}}}. It looks weird but it makes
 sense: 0000-00-00 -> -1-12-00 -> -1-11-30
 * IXR_Date works by taking substrings, and the leading '-' is what breaks
 everything.

 Using a NULL for a 'zero' date might make sense, but I wonder how many
 things would break, probably including XML-RPC :(

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19733#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list