diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index d0caecabc7..e4ec2088f0 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -330,7 +330,7 @@ function wp_default_packages_inline_scripts( $scripts ) { $timezone_abbr = ''; if ( ! empty( $timezone_string ) ) { - $timezone_date = new DateTime( null, new DateTimeZone( $timezone_string ) ); + $timezone_date = new DateTime( 'now', new DateTimeZone( $timezone_string ) ); $timezone_abbr = $timezone_date->format( 'T' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index aa9217cc06..dd3b0d12d5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51532'; +$wp_version = '5.9-alpha-51533'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.