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; }
Please login to continue.