You are here

function date_zonelist in Date 5

3 calls to date_zonelist()
date_offset in ./date.inc
A function to calculate offset using timezone.inc file
date_set_site_timezone in ./date.inc
Set system variable for site default timezone Needed because current system variable tracks offset rather than timezone
date_timezone_options in ./date.inc
Time zone option list

File

./date_timezones.inc, line 193

Code

function date_zonelist() {
  static $zones;
  if (!is_array($zones)) {
    $tz_array = date_get_timezones();
    $zones = array();
    foreach ($tz_array as $key => $zone) {
      $zones[$key] = $zone['timezone'];
    }
  }
  return $zones;
}