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

Breadcrumb

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

function QueryPluginBase::setFieldTimezoneOffset

Applies a timezone offset to the given field.

Parameters

string &$field: The date field, in string format.

int $offset: The timezone offset to apply to the field.

1 method overrides QueryPluginBase::setFieldTimezoneOffset()
Sql::setFieldTimezoneOffset in core/modules/views/src/Plugin/views/query/Sql.php
Applies a timezone offset to the given field.

File

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

Class

QueryPluginBase
Base plugin class for Views queries.

Namespace

Drupal\views\Plugin\views\query

Code

public function setFieldTimezoneOffset(&$field, $offset) {
    // No-op. Timezone offsets are implementation-specific and should implement
    // this method as needed.
}

API Navigation

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