[wp-trac] [WordPress Trac] #28992: mysql2date() return empty string not false sometimes added doing it wrong message

WordPress Trac noreply at wordpress.org
Thu Aug 29 05:30:53 UTC 2019


#28992: mysql2date() return empty string not false sometimes added doing it wrong
message
--------------------------------------+-----------------------------
 Reporter:  pbearne                   |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  reopened
 Priority:  normal                    |   Milestone:  5.3
Component:  Date/Time                 |     Version:  3.8
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 2 failures in XML-RPC tests:
 {{{
 1) Tests_XMLRPC_wp_newPost::test_invalid_post_date_does_not_fatal
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
 -'1970-01-01 00:00:00'
 +'2019-08-29 05:13:46'
 /var/www/tests/phpunit/tests/xmlrpc/wp/newPost.php:358
 2) Tests_XMLRPC_wp_newPost::test_invalid_post_date_gmt_does_not_fatal
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
 -'1970-01-01 00:00:00'
 +'0000-00-00 00:00:00'
 /var/www/tests/phpunit/tests/xmlrpc/wp/newPost.php:375
 }}}

 The first result is for `invalid_date` (with underscore), the second is
 for `invalid date` (with a space).

 Are these expected?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/28992#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list