Index: tests/phpunit/tests/xmlrpc/wp/newPost.php
===================================================================
--- tests/phpunit/tests/xmlrpc/wp/newPost.php	(revision 28782)
+++ tests/phpunit/tests/xmlrpc/wp/newPost.php	(working copy)
@@ -5,6 +5,24 @@
  */
 class Tests_XMLRPC_wp_newPost extends WP_XMLRPC_UnitTestCase {
 
+	function test_invalid_post_date_does_not_fatal() {
+		$this->make_user_by_role( 'author' );
+		$date_string = '2014-01-01 10:10:10';
+		$post = array( 'post_title' => 'test', 'post_content' => 'test', 'post_date' => $date_string );
+		$result = $this->myxmlrpcserver->wp_newPost( array( 1, 'author', 'author', $post ) );
+		$fetched_post = get_post( $result );
+		$this->assertStringMatchesFormat( '%d', $result );
+	}
+
+	function test_invalid_post_date_gmt_does_not_fatal() {
+		$this->make_user_by_role( 'author' );
+		$date_string = 'invalid date';
+		$post = array( 'post_title' => 'test', 'post_content' => 'test', 'post_date_gmt' => $date_string );
+		$result = $this->myxmlrpcserver->wp_newPost( array( 1, 'author', 'author', $post ) );
+		$fetched_post = get_post( $result );
+		$this->assertStringMatchesFormat( '%d', $result );
+	}
+
 	function test_invalid_username_password() {
 		$result = $this->myxmlrpcserver->wp_newPost( array( 1, 'username', 'password', array() ) );
 		$this->assertInstanceOf( 'IXR_Error', $result );
