function system_timezone
Menu callback; Retrieve a JSON object containing a suggested time zone name.
1 string reference to 'system_timezone'
- system_menu in modules/
system/ system.module - Implements hook_menu().
File
-
modules/
system/ system.module, line 3451
Code
function system_timezone($abbreviation = '', $offset = -1, $is_daylight_saving_time = NULL) {
// An abbreviation of "0" passed in the callback arguments should be
// interpreted as the empty string.
$abbreviation = $abbreviation ? $abbreviation : '';
$timezone = timezone_name_from_abbr($abbreviation, intval($offset), $is_daylight_saving_time);
drupal_json_output($timezone);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.