Search for timezone

  1. Search 7.x for timezone
  2. Search 9.5.x for timezone
  3. Search 8.9.x for timezone
  4. Search 10.3.x for timezone
  5. Search main for timezone
  6. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
TimeZone class core/modules/system/src/Plugin/migrate/process/d6/TimeZone.php Process the D6 Timezone offset into a D8 compatible timezone name.
TimeZone class core/modules/migrate/src/Plugin/migrate/process/TimeZone.php Process the Timezone offset into a Drupal compatible timezone name.

All search results

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.
BrowserTestBaseTest::testLocalTimeZone function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests the assumption that local time is in 'Australia/Sydney'.
cache_context.timezone service core/core.services.yml Drupal\Core\Cache\Context\TimeZoneCacheContext
Date::getTimezone function core/modules/datetime/src/Plugin/views/filter/Date.php Get the proper time zone to use in computations.
DateFormatter::$timezones property core/lib/Drupal/Core/Datetime/DateFormatter.php The list of loaded timezones.
DatelistElementFormTest::testTimezoneHandling function core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php Tests proper timezone handling of the Datelist element.
DateSqlInterface::setFieldTimezoneOffset function core/modules/views/src/Plugin/views/query/DateSqlInterface.php Applies the given offset to the given field.
DateSqlInterface::setTimezoneOffset function core/modules/views/src/Plugin/views/query/DateSqlInterface.php Set the database to the given timezone.
DateTestBase::$timezones property core/modules/datetime/tests/src/Functional/DateTestBase.php An array of timezone extremes to test.
DateTestBase::setSiteTimezone function core/modules/datetime/tests/src/Functional/DateTestBase.php Sets the site timezone to a given timezone.
DatetimeElementFormTest::testTimezoneHandling function core/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php Tests proper timezone handling of the Datetime element.
DateTimeFormatterBase::setTimeZone function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php Sets the proper time zone on a DrupalDateTime object for the current user.
DateTimeHandlerTestBase::setSiteTimezone function core/modules/datetime/tests/src/Kernel/Views/DateTimeHandlerTestBase.php Sets the site timezone to a given timezone.
DateTimeIso8601NormalizerTestDrupalDateTime::setTimezone function core/modules/serialization/tests/src/Unit/Normalizer/DateTimeIso8601NormalizerTest.php Sets the timezone.
DateTimeItemInterface::STORAGE_TIMEZONE constant core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItemInterface.php Defines the timezone that dates should be stored in.
DateTimeNormalizer::getNormalizationTimezone function core/modules/serialization/src/Normalizer/DateTimeNormalizer.php Gets the timezone to be used during normalization.
DateTimeNormalizerTestDrupalDateTime::setTimezone function core/modules/serialization/tests/src/Unit/Normalizer/DateTimeNormalizerTest.php Sets the timezone.
DateTimePlus::prepareTimezone function core/lib/Drupal/Component/Datetime/DateTimePlus.php Prepares the input timezone value.
DateTimePlusTest::providerTestDateTimezone function core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php Provides data for testDateTimezone.
DateTimePlusTest::testDateTimezone function core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php Tests that DrupalDateTime can detect the right timezone to use.
DateTimePlusTest::testDateTimezoneWithDateTimeObject function core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php Tests that DrupalDateTime can detect the correct timezone to use.
DateTimeTest::testTimeZoneHandling function core/modules/system/tests/src/Functional/System/DateTimeTest.php Tests time zones and DST handling.
DrupalDateTime::prepareTimezone function core/lib/Drupal/Core/Datetime/DrupalDateTime.php Overrides prepareTimezone().
DrupalDateTimeTest::testDateTimezone function core/tests/Drupal/KernelTests/Core/Datetime/DrupalDateTimeTest.php Tests that DrupalDateTime can detect the right timezone to use.
DrupalDateTimeTest::testTimezoneFormat function core/tests/Drupal/KernelTests/Core/Datetime/DrupalDateTimeTest.php Tests the ability to override the time zone in the format method.
FilterDateTest::$timezones property core/modules/datetime/tests/src/Kernel/Views/FilterDateTest.php An array of timezone extremes to test.
FilterDateTimeTest::$timezone property core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php Use a non-UTC timezone.
InstallerSiteConfigProfileTest::EXPECTED_TIMEZONE constant core/tests/Drupal/FunctionalTests/Installer/InstallerSiteConfigProfileTest.php The timezone we expect to be set from the install profile.
JsonApiRegressionTest::testPatchingDateTimeNormalizedWrongTimeZoneIssue3021194 function core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php Ensures datetime fields are normalized using the correct timezone.
KernelTestBaseTest::testLocalTimeZone function core/tests/Drupal/KernelTests/KernelTestBaseTest.php Tests the assumption that local time is in 'Australia/Sydney'.
MysqlDateSql::setFieldTimezoneOffset function core/modules/views/src/Plugin/views/query/MysqlDateSql.php Applies the given offset to the given field.
MysqlDateSql::setTimezoneOffset function core/modules/views/src/Plugin/views/query/MysqlDateSql.php Set the database to the given timezone.
MysqlDateSqlTest::testSetFieldTimezoneOffset function core/modules/views/tests/src/Unit/Plugin/views/query/MysqlDateSqlTest.php Tests timezone offset formatting.
MysqlDateSqlTest::testSetTimezoneOffset function core/modules/views/tests/src/Unit/Plugin/views/query/MysqlDateSqlTest.php Tests setting the database offset.
PostgresqlDateSql::setFieldTimezoneOffset function core/modules/views/src/Plugin/views/query/PostgresqlDateSql.php Applies the given offset to the given field.
PostgresqlDateSql::setTimezoneOffset function core/modules/views/src/Plugin/views/query/PostgresqlDateSql.php Set the database to the given timezone.
PostgresqlDateSqlTest::testSetFieldTimezoneOffset function core/modules/views/tests/src/Unit/Plugin/views/query/PostgresqlDateSqlTest.php Tests timezone offset formatting.
PostgresqlDateSqlTest::testSetTimezoneOffset function core/modules/views/tests/src/Unit/Plugin/views/query/PostgresqlDateSqlTest.php Tests setting the database offset.
QueryPluginBase::getTimezoneOffset function core/modules/views/src/Plugin/views/query/QueryPluginBase.php Get the timezone offset in seconds.
QueryPluginBase::setFieldTimezoneOffset function core/modules/views/src/Plugin/views/query/QueryPluginBase.php Applies a timezone offset to the given field.
QueryPluginBase::setupTimezone function core/modules/views/src/Plugin/views/query/QueryPluginBase.php Set the database to the current user timezone.
QueryTest::setFieldTimezoneOffset function core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php Applies a timezone offset to the given field.
RegionalForm::loadDefaultTimeZone function core/modules/system/src/Form/RegionalForm.php Prepares the saved timezone.default property to be displayed in the form.
Sql::setFieldTimezoneOffset function core/modules/views/src/Plugin/views/query/Sql.php Applies a timezone offset to the given field.
Sql::setupTimezone function core/modules/views/src/Plugin/views/query/Sql.php Set the database to the current user timezone.
SqliteDateSql::setFieldTimezoneOffset function core/modules/views/src/Plugin/views/query/SqliteDateSql.php Applies the given offset to the given field.
SqliteDateSql::setTimezoneOffset function core/modules/views/src/Plugin/views/query/SqliteDateSql.php Set the database to the given timezone.
SqliteDateSqlTest::testSetFieldTimezoneOffset function core/modules/views/tests/src/Unit/Plugin/views/query/SqliteDateSqlTest.php Tests timezone offset formatting.
SqliteDateSqlTest::testSetTimezoneOffset function core/modules/views/tests/src/Unit/Plugin/views/query/SqliteDateSqlTest.php Tests setting the database offset.

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