function QueryPluginBase::setFieldTimezoneOffset

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::setFieldTimezoneOffset()
  2. 8.9.x core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::setFieldTimezoneOffset()
  3. 11.x core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::setFieldTimezoneOffset()

Applies a timezone offset to the given field.

Parameters

string &$field: The date field, in string format.

int $offset: The timezone offset to apply to the field.

2 methods override QueryPluginBase::setFieldTimezoneOffset()
QueryTest::setFieldTimezoneOffset in core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php
Applies a timezone offset to the given field.
Sql::setFieldTimezoneOffset in core/modules/views/src/Plugin/views/query/Sql.php
Applies a timezone offset to the given field.

File

core/modules/views/src/Plugin/views/query/QueryPluginBase.php, line 373

Class

QueryPluginBase
Base plugin class for Views queries.

Namespace

Drupal\views\Plugin\views\query

Code

public function setFieldTimezoneOffset(&$field, $offset) {
    // No-op. Timezone offsets are implementation-specific and should implement
    // this method as needed.
}

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