function DateSqlInterface::setFieldTimezoneOffset

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

Applies the given offset to the given field.

Parameters

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

int $offset: The timezone offset in seconds.

3 methods override DateSqlInterface::setFieldTimezoneOffset()
MysqlDateSql::setFieldTimezoneOffset in core/modules/views/src/Plugin/views/query/MysqlDateSql.php
Applies the given offset to the given field.
PostgresqlDateSql::setFieldTimezoneOffset in core/modules/views/src/Plugin/views/query/PostgresqlDateSql.php
Applies the given offset to the given field.
SqliteDateSql::setFieldTimezoneOffset in core/modules/views/src/Plugin/views/query/SqliteDateSql.php
Applies the given offset to the given field.

File

core/modules/views/src/Plugin/views/query/DateSqlInterface.php, line 52

Class

DateSqlInterface
Defines an interface for handling date queries with SQL.

Namespace

Drupal\views\Plugin\views\query

Code

public function setFieldTimezoneOffset(&$field, $offset);

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