diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index c41fe90fc0..fddaeb7bc9 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -3497,16 +3497,16 @@ function _wp_iso_convert( $match ) { } /** - * Returns a date in the GMT equivalent. + * Given a date in the timezone of the site, returns that date in UTC timezone. * * Requires and returns a date in the Y-m-d H:i:s format. * Return format can be overridden using the $format parameter. * * @since 1.2.0 * - * @param string $string The date to be converted. + * @param string $string The date to be converted, in the timezone of the site. * @param string $format The format string for the returned date. Default 'Y-m-d H:i:s'. - * @return string GMT version of the date provided. + * @return string Formatted version of the date, in UTC timezone. */ function get_gmt_from_date( $string, $format = 'Y-m-d H:i:s' ) { $datetime = date_create( $string, wp_timezone() ); @@ -3519,16 +3519,16 @@ function get_gmt_from_date( $string, $format = 'Y-m-d H:i:s' ) { } /** - * Converts a GMT date into the correct format for the blog. + * Given a date in UTC timezone, returns that date in the timezone of the site. * * Requires and returns a date in the Y-m-d H:i:s format. * Return format can be overridden using the $format parameter. * * @since 1.2.0 * - * @param string $string The date to be converted. + * @param string $string The date to be converted, in UTC timezone. * @param string $format The format string for the returned date. Default 'Y-m-d H:i:s'. - * @return string Formatted date relative to the timezone. + * @return string Formatted version of the date, in the site's timezone. */ function get_date_from_gmt( $string, $format = 'Y-m-d H:i:s' ) { $datetime = date_create( $string, new DateTimeZone( 'UTC' ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index df23dc7728..73c0af47ab 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-46957'; +$wp_version = '5.4-alpha-46958'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.