diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index 692fd0b559..0bcc06954a 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -839,6 +839,21 @@ class WP_Debug_Data { ); } + // Server time. + $date = new DateTime( 'now', new DateTimeZone( 'UTC' ) ); + $info['wp-server']['fields']['current'] = array( + 'label' => __( 'Current time' ), + 'value' => $date->format( DateTime::ATOM ), + ); + $info['wp-server']['fields']['utc-time'] = array( + 'label' => __( 'Current UTC time' ), + 'value' => $date->format( DateTime::RFC850 ), + ); + $info['wp-server']['fields']['server-time'] = array( + 'label' => __( 'Current Server time' ), + 'value' => wp_date( 'c', $_SERVER['REQUEST_TIME'] ), + ); + // Populate the database debug fields. if ( is_resource( $wpdb->dbh ) ) { // Old mysql extension. diff --git a/wp-includes/version.php b/wp-includes/version.php index 0e34e983be..5fd58917bd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-56055'; +$wp_version = '6.3-alpha-56056'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.