You are here

public function QueryPluginBase::setupTimezone in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::setupTimezone()

Set the database to the current user timezone,

Return value

string The current timezone as returned by drupal_get_user_timezone().

1 method overrides QueryPluginBase::setupTimezone()
Sql::setupTimezone in core/modules/views/src/Plugin/views/query/Sql.php
Set the database to the current user timezone,

File

core/modules/views/src/Plugin/views/query/QueryPluginBase.php, line 228
Contains \Drupal\views\Plugin\views\query\QueryPluginBase.

Class

QueryPluginBase
Base plugin class for Views queries.

Namespace

Drupal\views\Plugin\views\query

Code

public function setupTimezone() {
  return drupal_get_user_timezone();
}