SunshinePHP 2018 CFP Started

List of Supported Timezones

Table of Contents

Here you'll find the complete list of timezones supported by PHP, which are meant to be used with e.g. date_default_timezone_set().

Caution

The behavior of timezones not listed here is undefined.

Note: The latest version of the timezone database can be installed via PECL's » timezonedb.

Note: This list is based upon the timezone database version 2017.2.

add a note add a note

User Contributed Notes 3 notes

up
-26
onomame
6 months ago
Get a list of Timezones.

<?php
foreach(timezone_abbreviations_list() as $abbr => $timezone){
        foreach(
$timezone as $val){
                if(isset(
$val['timezone_id'])){
                       
var_dump($abbr,$val['timezone_id']);
                }
        }
}
?>
up
-40
braindead
4 months ago
Just use DateTimeZone::listIdentifiers()
To Top