Converts a WordPress GMT date string to an IXR_Date object.
Parameters
$date_gmt
stringrequired- WordPress GMT date string.
$date
stringrequired- Date string.
Source
protected function _convert_date_gmt( $date_gmt, $date ) {
if ( '0000-00-00 00:00:00' !== $date && '0000-00-00 00:00:00' === $date_gmt ) {
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 );
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.