public static function getWpTimezone() {

		$timezone_string = get_option( 'timezone_string' );

		if ( ! empty( $timezone_string ) ) {
			return new static( $timezone_string );
		}

		$offset  = get_option( 'gmt_offset' );
		$hours   = (int) $offset;
		$minutes = abs( ( $offset - (int) $offset ) * 60 );
		$offset  = sprintf( '%+03d:%02d', $hours, $minutes );

		return new static( $offset );
	}
public static function getWpTimezone() {

		$timezone_string = get_option( 'timezone_string' );

		if ( ! empty( $timezone_string ) ) {
			return new static( $timezone_string );
		}

		$offset  = get_option( 'gmt_offset' );
		$hours   = (int) $offset;
		$minutes = abs( ( $offset - (int) $offset ) * 60 );
		$offset  = sprintf( '%+03d:%02d', $hours, $minutes );

		return new static( $offset );
	}
public static function getWpTimezone ( ) { $ timezone_string = get_option ( 'timezone_string' ) ; if ( ! empty ( $ timezone_string ) ) { return new static ( $ timezone_string ) ; } $ offset = get_option ( 'gmt_offset' ) ; $ hours = ( int ) $ offset ; $ minutes = abs ( ( $ offset - ( int ) $ offset ) * 60 ) ; $ offset = sprintf ( '%+03d:%02d' , $ hours , $ minutes ) ; return new static ( $ offset ) ; }
Determine time zone from WordPress options and return as object.

@return static
Determine time zone from WordPress options and return as object .