User::getTimeZone

public User::getTimeZone()

Returns the timezone of this account.

Return value

string Name of the timezone.

Overrides AccountInterface::getTimeZone

File

core/modules/user/src/Entity/User.php, line 304

Class

User
Defines the user entity class.

Namespace

Drupal\user\Entity

Code

public function getTimeZone() {
  return $this->get('timezone')->value;
}
doc_Drupal
2016-10-29 09:52:07
Comments
Leave a Comment

Please login to continue.