public function Account::getTimeZone in Service Container 7
Same name and namespace in other branches
- 7.2 src/Session/Account.php \Drupal\service_container\Session\Account::getTimeZone()
Returns the timezone of this account.
Return value
string Name of the timezone.
Overrides AccountInterface::getTimeZone
File
- src/
Session/ Account.php, line 141 - Contains \Drupal\service_container\Session\Account.
Class
- Account
- Wraps the global user to provide the account interface.
Namespace
Drupal\service_container\SessionCode
public function getTimeZone() {
return $this->drupal7
->drupal_get_user_timezone();
}