public function SqlsrvDateSql::setTimezoneOffset in Drupal driver for SQL Server and SQL Azure 8
Same name and namespace in other branches
- 4.2.x src/Plugin/views/query/SqlsrvDateSql.php \Drupal\sqlsrv\Plugin\views\query\SqlsrvDateSql::setTimezoneOffset()
- 3.0.x src/Plugin/views/query/SqlsrvDateSql.php \Drupal\sqlsrv\Plugin\views\query\SqlsrvDateSql::setTimezoneOffset()
- 3.1.x src/Plugin/views/query/SqlsrvDateSql.php \Drupal\sqlsrv\Plugin\views\query\SqlsrvDateSql::setTimezoneOffset()
- 4.0.x src/Plugin/views/query/SqlsrvDateSql.php \Drupal\sqlsrv\Plugin\views\query\SqlsrvDateSql::setTimezoneOffset()
- 4.1.x src/Plugin/views/query/SqlsrvDateSql.php \Drupal\sqlsrv\Plugin\views\query\SqlsrvDateSql::setTimezoneOffset()
Set the database to the given timezone.
Parameters
string $offset: The timezone.
Overrides DateSqlInterface::setTimezoneOffset
File
- src/
Plugin/ views/ query/ SqlsrvDateSql.php, line 92
Class
- SqlsrvDateSql
- MSSQL-specific date handling.
Namespace
Drupal\sqlsrv\Plugin\views\queryCode
public function setTimezoneOffset($offset) {
// $this->database->query("SET @@session.time_zone = '$offset'");
}