public static function createFromFormat( $format, $time, $timezone = null ) {

		/** @var \DateTimeInterface $created */
		$created = empty( $timezone ) ?
			parent::createFromFormat( $format, $time ) :
			parent::createFromFormat( $format, $time, $timezone );

		if ( false === $created ) {
			return false;
		}

		$wp_date_time = new static( '@' . $created->getTimestamp() );

		return $wp_date_time->setTimezone( $created->getTimezone() );
	}
public static function createFromFormat( $format, $time, $timezone = null ) {

		/** @var \DateTimeInterface $created */
		$created = empty( $timezone ) ?
			parent::createFromFormat( $format, $time ) :
			parent::createFromFormat( $format, $time, $timezone );

		if ( false === $created ) {
			return false;
		}

		$wp_date_time = new static( '@' . $created->getTimestamp() );

		return $wp_date_time->setTimezone( $created->getTimezone() );
	}
public static function createFromFormat ( $ format , $ time , $ timezone = null ) { /** @var \DateTimeInterface $created */ $ created = empty ( $ timezone ) ? parent :: createFromFormat ( $ format , $ time ) : parent :: createFromFormat ( $ format , $ time , $ timezone ) ; if ( false === $ created ) { return false ; } $ wp_date_time = new static ( '@' . $ created -> getTimestamp ( ) ) ; return $ wp_date_time -> setTimezone ( $ created -> getTimezone ( ) ) ; }
Overrides upstream method to correct returned instance type to the inheriting one.

{@inheritdoc}

@return bool|static
Overrides upstream method to correct returned instance type to the inheriting one .