wp_timezone_choice example

$tzstring = 'UTC' . $current_offset;
    } else {
        $tzstring = 'UTC+' . $current_offset;
    }
}

?> <th scope="row"><label for="timezone_string"><?php _e( 'Timezone' ); ?></label></th> <td> <select id="timezone_string" name="timezone_string" aria-describedby="timezone-description"> <?php echo wp_timezone_choice( $tzstringget_user_locale() ); ?> </select> <p class="description" id="timezone-description"> <?php     printf(
        /* translators: %s: UTC abbreviation */
        __( 'Choose either a city in the same timezone as you or a %s (Coordinated Universal Time) time offset.' ),
        '<abbr>UTC</abbr>'
    );
    ?> </p> <p class="timezone-info"> <span id="utc-time">
Home | Imprint | This part of the site doesn't use cookies.