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().

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 2016.1.

add a note add a note

User Contributed Notes 3 notes

up
0
aayaresko at gmail dot com
1 month ago
to know time zones offset in seconds and hours I used this method.
<?php
$time_zones
= $timezone_identifiers = \DateTimeZone::listIdentifiers();
        foreach (
$time_zones as $time_zone) {
           
$date = new \DateTime('now', new \DateTimeZone($time_zone));
           
$offset_in_hours = $date->getOffset() / 60 / 60;
            if (!
is_null($offset) && $offset == $offset_in_hours) {
                echo
"{$time_zone}: {$date->getOffset()} ($offset_in_hours)<br>";
            }
        }
?>
up
0
William
10 months ago
To get a list programmatically, I use \DateTimeZone::listIdentifiers() (you may encounter its alias timezone_identifiers_list()): http://php.net/DateTimeZone.listIdentifiers
up
-8
mblaney at gmail dot com
8 months ago
Follow up to William's helpful advice:
php -r 'echo join(timezone_identifiers_list(), ",");'
To Top