function SqliteDateSql::setFieldTimezoneOffset

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

Overrides DateSqlInterface::setFieldTimezoneOffset

File

core/modules/views/src/Plugin/views/query/SqliteDateSql.php, line 121

Class

SqliteDateSql
SQLite-specific date handling.

Namespace

Drupal\views\Plugin\views\query

Code

public function setFieldTimezoneOffset(&$field, $offset, $string_date = FALSE) {
    if (!empty($offset)) {
        $field = "({$field} + {$offset})";
    }
}

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