Make WordPress Core

Changeset 55344


Ignore:
Timestamp:
02/15/2023 02:00:44 AM (13 months ago)
Author:
peterwilsoncc
Message:

Date/Time: Revert mysql2date changes in [55343].

These changes will be targeted to the 6.3 release.

See #57705.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r55343 r55344  
    3333    }
    3434
    35     $timezone = wp_timezone();
    36     $datetime = date_create( $date, $timezone );
     35    $datetime = date_create( $date, wp_timezone() );
    3736
    3837    if ( false === $datetime ) {
     
    4645
    4746    if ( $translate ) {
    48         return wp_date( $format, $datetime->getTimestamp(), $timezone );
     47        return wp_date( $format, $datetime->getTimestamp() );
    4948    }
    5049
Note: See TracChangeset for help on using the changeset viewer.