function PostgresqlDateSql::setTimezoneOffset
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/query/PostgresqlDateSql.php \Drupal\views\Plugin\views\query\PostgresqlDateSql::setTimezoneOffset()
- 10 core/modules/views/src/Plugin/views/query/PostgresqlDateSql.php \Drupal\views\Plugin\views\query\PostgresqlDateSql::setTimezoneOffset()
- 11.x core/modules/views/src/Plugin/views/query/PostgresqlDateSql.php \Drupal\views\Plugin\views\query\PostgresqlDateSql::setTimezoneOffset()
Overrides DateSqlInterface::setTimezoneOffset
File
-
core/
modules/ views/ src/ Plugin/ views/ query/ PostgresqlDateSql.php, line 92
Class
- PostgresqlDateSql
- PostgreSQL-specific date handling.
Namespace
Drupal\views\Plugin\views\queryCode
public function setTimezoneOffset($offset) {
$this->database
->query("SET TIME ZONE INTERVAL '{$offset}' HOUR TO MINUTE");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.