function MysqlDateSql::setTimezoneOffset
Same name in other branches
- 9 core/modules/views/src/Plugin/views/query/MysqlDateSql.php \Drupal\views\Plugin\views\query\MysqlDateSql::setTimezoneOffset()
- 8.9.x core/modules/views/src/Plugin/views/query/MysqlDateSql.php \Drupal\views\Plugin\views\query\MysqlDateSql::setTimezoneOffset()
- 10 core/modules/views/src/Plugin/views/query/MysqlDateSql.php \Drupal\views\Plugin\views\query\MysqlDateSql::setTimezoneOffset()
Overrides DateSqlInterface::setTimezoneOffset
File
-
core/
modules/ views/ src/ Plugin/ views/ query/ MysqlDateSql.php, line 83
Class
- MysqlDateSql
- MySQL-specific date handling.
Namespace
Drupal\views\Plugin\views\queryCode
public function setTimezoneOffset($offset) {
$this->database
->query("SET @@session.time_zone = '{$offset}'");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.