Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. QueryPluginBase.php

function QueryPluginBase::setupTimezone

Set the database to the current user timezone.

Return value

string The current timezone as returned by date_default_timezone_get().

3 calls to QueryPluginBase::setupTimezone()
QueryPluginBase::getTimezoneOffset in core/modules/views/src/Plugin/views/query/QueryPluginBase.php
Get the timezone offset in seconds.
Sql::setupTimezone in core/modules/views/src/Plugin/views/query/Sql.php
Set the database to the current user timezone.
Sql::setupTimezone in core/modules/views/src/Plugin/views/query/Sql.php
Set the database to the current 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 239

Class

QueryPluginBase
Base plugin class for Views queries.

Namespace

Drupal\views\Plugin\views\query

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal