DateTestBase::$timezones

Same name in other branches
  1. 9 core/modules/datetime/tests/src/Functional/DateTestBase.php \Drupal\Tests\datetime\Functional\DateTestBase::timezones
  2. 8.9.x core/modules/datetime/src/Tests/DateTestBase.php \Drupal\datetime\Tests\DateTestBase::timezones
  3. 8.9.x core/modules/datetime/tests/src/Functional/DateTestBase.php \Drupal\Tests\datetime\Functional\DateTestBase::timezones
  4. 10 core/modules/datetime/tests/src/Functional/DateTestBase.php \Drupal\Tests\datetime\Functional\DateTestBase::timezones

An array of timezone extremes to test.

Type: string[]

File

core/modules/datetime/tests/src/Functional/DateTestBase.php, line 64

Class

DateTestBase
Provides a base class for testing Datetime field functionality.

Namespace

Drupal\Tests\datetime\Functional

Code

protected static $timezones = [
    // UTC-12, no DST.
'Pacific/Kwajalein',
    // UTC-11, no DST
'Pacific/Midway',
    // UTC-7, no DST.
'America/Phoenix',
    // UTC.
'UTC',
    // UTC+5:30, no DST.
'Asia/Kolkata',
    // UTC+12, no DST
'Pacific/Funafuti',
    // UTC+13, no DST.
'Pacific/Tongatapu',
];

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