diff --git a/wp-includes/functions.php b/wp-includes/functions.php index c94096e4c0..3c4a301298 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -5863,10 +5863,7 @@ function wp_post_preview_js() { * @return string Date formatted for ISO8601 without time zone. */ function mysql_to_rfc3339( $date_string ) { - $formatted = mysql2date( 'c', $date_string, false ); - - // Strip timezone information - return preg_replace( '/(?:Z|[+-]\d{2}(?::\d{2})?)$/', '', $formatted ); + return mysql2date( 'Y-m-d\TH:i:s', $date_string, false ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 9d820a860e..0b09cfa9c1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43383'; +$wp_version = '5.0-alpha-43384'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.