function QueryPluginBase::setupTimezone

Same name and namespace in other branches
  1. 11.x 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 date_default_timezone_get().

File

core/modules/views/src/Plugin/views/query/QueryPluginBase.php, line 234

Class

QueryPluginBase
Base plugin class for Views queries.

Namespace

Drupal\views\Plugin\views\query

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.