[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 14:04:38 UTC 2012


#19733: XML-RPC returns invalid dates if the date is zero
--------------------------+-----------------------------
 Reporter:  koke          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  XML-RPC       |    Version:  3.3
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 When a post has a 'pending' status, {{{post_date_gmt}}} is set to
 {{{0000-00-00 00:00:00}}} as a marker to update {{{post_date}}} when it's
 saved (see #5698).

 mysql2date then proceeds to turn that date into a negative one, and
 IXR_Date destroys the thing a bit more, so {{{0000-00-00 00:00:00}}} turns
 into {{{-0001113TT0::0::00}}}, which is an invalid ISO8601 date

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


More information about the wp-trac mailing list