function PostgresqlDateSql::setFieldTimezoneOffset
Same name in other branches
- 9 core/modules/views/src/Plugin/views/query/PostgresqlDateSql.php \Drupal\views\Plugin\views\query\PostgresqlDateSql::setFieldTimezoneOffset()
- 8.9.x core/modules/views/src/Plugin/views/query/PostgresqlDateSql.php \Drupal\views\Plugin\views\query\PostgresqlDateSql::setFieldTimezoneOffset()
- 11.x core/modules/views/src/Plugin/views/query/PostgresqlDateSql.php \Drupal\views\Plugin\views\query\PostgresqlDateSql::setFieldTimezoneOffset()
Overrides DateSqlInterface::setFieldTimezoneOffset
File
-
core/
modules/ views/ src/ Plugin/ views/ query/ PostgresqlDateSql.php, line 85
Class
- PostgresqlDateSql
- PostgreSQL-specific date handling.
Namespace
Drupal\views\Plugin\views\queryCode
public function setFieldTimezoneOffset(&$field, $offset) {
$field = "({$field} + INTERVAL '{$offset} SECONDS')";
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.