function zoomapi_get_account_timezone in Zoom API 7.2
Get account timezone.
2 calls to zoomapi_get_account_timezone()
- zoomapi_format_timestamp_local_user in ./
zoomapi.module - Format datetime helper.
- zoomapi_zoomapi_user_create in ./
zoomapi.module - Implements hook_zoomapi_user_create().
File
- ./
zoomapi.module, line 1382 - Main file for the Zoom API module.
Code
function zoomapi_get_account_timezone($account) {
$timezone = drupal_get_user_timezone();
if ($account) {
$account = is_numeric($account) ? user_load($account) : $account;
if (!empty($account->timezone)) {
$timezone = $account->timezone;
}
}
return $timezone;
}