You are here

protected function DateRecurBasicWidget::getCurrentUserTimeZone in Recurring Dates Field 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php \Drupal\date_recur\Plugin\Field\FieldWidget\DateRecurBasicWidget::getCurrentUserTimeZone()
  2. 3.x src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php \Drupal\date_recur\Plugin\Field\FieldWidget\DateRecurBasicWidget::getCurrentUserTimeZone()
  3. 3.1.x src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php \Drupal\date_recur\Plugin\Field\FieldWidget\DateRecurBasicWidget::getCurrentUserTimeZone()

Get the current users time zone.

Return value

string A PHP time zone string.

File

src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php, line 220

Class

DateRecurBasicWidget
Basic RRULE widget.

Namespace

Drupal\date_recur\Plugin\Field\FieldWidget

Code

protected function getCurrentUserTimeZone() : string {
  return \date_default_timezone_get();
}