Question : php get timezone
Answered by : aashit-vyom
echo date_default_timezone_get(); //UTC
//Read more at https://www.php.net/manual/en/function.date-default-timezone-get.php
Source : https://www.php.net/manual/en/function.date-default-timezone-get.php | Last Update : Wed, 22 Jul 20
Question : how to get the list of available timezones in php
Answered by : gursewak-singh
//To Get the list of timezones available in php
//use the static function listIdentifiers() on DateTimeZone class
$list = DateTimeZone::listIdentifiers();
print_r($list)
Source : | Last Update : Sat, 02 May 20
Question : Php get all timezone
Answered by : md-hasanur-rahman-hasan
$tzlist = DateTimeZone::listIdentifiers(DateTimeZone::ALL);
Source : | Last Update : Wed, 16 Mar 22