wp_xmlrpc_server::_convert_date_gmt( string $date_gmt, string $date )

Convert a ClassicPress GMT date string to an IXR_Date object.


Parameters

$date_gmt

(Required) ClassicPress GMT date string.

$date

(Required) Date string.


Return

(IXR_Date) IXR_Date object.


Source

File: wp-includes/class-wp-xmlrpc-server.php

	protected function _convert_date_gmt( $date_gmt, $date ) {
		if ( $date !== '0000-00-00 00:00:00' && $date_gmt === '0000-00-00 00:00:00' ) {
			return new IXR_Date( get_gmt_from_date( mysql2date( 'Y-m-d H:i:s', $date, false ), 'Ymd\TH:i:s' ) );
		}
		return $this->_convert_date( $date_gmt );
	}