function DateSqlInterface::setTimezoneOffset

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

Set the database to the given timezone.

Parameters

string $offset: The timezone.

3 methods override DateSqlInterface::setTimezoneOffset()
MysqlDateSql::setTimezoneOffset in core/modules/views/src/Plugin/views/query/MysqlDateSql.php
Set the database to the given timezone.
PostgresqlDateSql::setTimezoneOffset in core/modules/views/src/Plugin/views/query/PostgresqlDateSql.php
Set the database to the given timezone.
SqliteDateSql::setTimezoneOffset in core/modules/views/src/Plugin/views/query/SqliteDateSql.php
Set the database to the given timezone.

File

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

Class

DateSqlInterface
Defines an interface for handling date queries with SQL.

Namespace

Drupal\views\Plugin\views\query

Code

public function setTimezoneOffset($offset);

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