XML-RPC returns invalid dates if the date is zero
|Reported by:||koke||Owned by:||westi|
|Component:||XML-RPC||Keywords:||has-patch mobile needs-unit-tests|
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