Uses
Uses | Description |
---|---|
wp-includes/functions.php: mysql2date() | Convert given MySQL date string into a different format. |
Convert a WordPress date string to an IXR_Date object.
(string) (Required) Date string to convert.
File: wp-includes/class-wp-xmlrpc-server.php
protected function _convert_date( $date ) { if ( '0000-00-00 00:00:00' === $date ) { return new IXR_Date( '00000000T00:00:00Z' ); } return new IXR_Date( mysql2date( 'Ymd\TH:i:s', $date, false ) ); }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_xmlrpc_server/_convert_date