Search for getTimeZone

  1. Search 7.x for getTimeZone
  2. Search 9.5.x for getTimeZone
  3. Search 10.3.x for getTimeZone
  4. Search 11.x for getTimeZone
  5. Other projects
Title Object type File name Summary
AccountInterface::getTimeZone function core/lib/Drupal/Core/Session/AccountInterface.php Returns the timezone of this account.
AccountProxy::getTimeZone function core/lib/Drupal/Core/Session/AccountProxy.php Returns the timezone of this account.
Date::getTimezone function core/modules/datetime/src/Plugin/views/filter/Date.php Get the proper time zone to use in computations.
QueryPluginBase::getTimezoneOffset function core/modules/views/src/Plugin/views/query/QueryPluginBase.php Get the timezone offset in seconds.
TimezoneController::getTimezone function core/modules/system/src/Controller/TimezoneController.php Retrieve a JSON object containing a time zone name given a timezone
abbreviation.
TimeZoneResolver::getTimeZone function core/modules/system/src/TimeZoneResolver.php Gets the time zone based on site and user configuration.
TimezoneResolverTest::testGetTimeZone function core/modules/system/tests/src/Kernel/TimezoneResolverTest.php Tests time zone resolution.
User::getTimeZone function core/modules/user/src/Entity/User.php Returns the timezone of this account.
UserSession::getTimeZone function core/lib/Drupal/Core/Session/UserSession.php Returns the timezone of this account.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.