How to get Time Zones in Moodle 3.1

Re: How to get Time Zones in Moodle 3.1

by Olumuyiwa Taiwo -
Number of replies: 0
Picture of Plugin developers

There is a static function

get_list_of_timezones()

in the core_date class (in lib/classes/date.php). So you probably want to do something like

$timezones = core_date::get_list_of_timezones()