Date/Time: Revert `mysql2date` changes in [55343].
These changes will be targeted to the 6.3 release. See #57705. Built from https://develop.svn.wordpress.org/trunk@55344 git-svn-id: http://core.svn.wordpress.org/trunk@54877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0dc9b1a9b8
commit
fc49b0b92a
|
@ -32,8 +32,7 @@ function mysql2date( $format, $date, $translate = true ) {
|
|||
return false;
|
||||
}
|
||||
|
||||
$timezone = wp_timezone();
|
||||
$datetime = date_create( $date, $timezone );
|
||||
$datetime = date_create( $date, wp_timezone() );
|
||||
|
||||
if ( false === $datetime ) {
|
||||
return false;
|
||||
|
@ -45,7 +44,7 @@ function mysql2date( $format, $date, $translate = true ) {
|
|||
}
|
||||
|
||||
if ( $translate ) {
|
||||
return wp_date( $format, $datetime->getTimestamp(), $timezone );
|
||||
return wp_date( $format, $datetime->getTimestamp() );
|
||||
}
|
||||
|
||||
return $datetime->format( $format );
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.2-beta2-55343';
|
||||
$wp_version = '6.2-beta2-55344';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue