wp_xmlrpc_server::_convert_date( string $date )
Convert a WordPress date string to an IXR_Date object.
Description Description
Parameters Parameters
- $date
-
(string) (Required) Date string to convert.
Return Return
Source Source
File: wp-includes/class-wp-xmlrpc-server.php
protected function _convert_date( $date ) { if ( $date === '0000-00-00 00:00:00' ) { return new IXR_Date( '00000000T00:00:00Z' ); } return new IXR_Date( mysql2date( 'Ymd\TH:i:s', $date, false ) ); }
Expand full source code Collapse full source code View on Trac