function drupal_get_user_timezone
drupal_get_user_timezone()
Returns the time zone of the current user.
File
- includes/bootstrap.inc, line 2534
- Functions that need to be loaded on every Drupal request.
Code
function drupal_get_user_timezone() { global $user; if (variable_get('configurable_timezones', 1) && $user->uid && $user->timezone) { return $user->timezone; } else { // Ignore PHP strict notice if time zone has not yet been set in the php.ini // configuration. return variable_get('date_default_timezone', @date_default_timezone_get()); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/drupal_get_user_timezone/7.x