[wp-trac] [WordPress Trac] #42995: Wordpress XML-RPC editComment return error 500 changing date_created_gmt

WordPress Trac noreply at wordpress.org
Sat Dec 30 22:00:52 UTC 2017


#42995: Wordpress XML-RPC editComment return error 500 changing date_created_gmt
--------------------------+------------------------------
 Reporter:  fpilee        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  XML-RPC       |     Version:  4.9.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by fpilee):

 I confirm that the issue is that.
 You could add this to the line 3532 and it will work fine.

 {{{#!php
 <?php
             $__date = new \DateTime($content_struct['date_created_gmt'] );
             $content_struct['date_created_gmt'] = new
 IXR_Date($__date->getTimestamp() );
 }}}

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


More information about the wp-trac mailing list