php get timezone
echo date_default_timezone_get(); //UTC //Read more at https://www.php.net/manual/en/function.date-default-timezone-get.php
Source: www.php.net
how to get the list of available timezones in php
//To Get the list of timezones available in php //use the static function listIdentifiers() on DateTimeZone class $list = DateTimeZone::listIdentifiers(); print_r($list)
set timezone in php
date_default_timezone_set('Asia/Kolkata);
Php get all timezone
$tzlist = DateTimeZone::listIdentifiers(DateTimeZone::ALL);