protected function DateRecurBasicWidget::getCurrentUserTimeZone in Recurring Dates Field 3.0.x
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php \Drupal\date_recur\Plugin\Field\FieldWidget\DateRecurBasicWidget::getCurrentUserTimeZone()
- 3.x src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php \Drupal\date_recur\Plugin\Field\FieldWidget\DateRecurBasicWidget::getCurrentUserTimeZone()
- 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\FieldWidgetCode
protected function getCurrentUserTimeZone() : string {
return \date_default_timezone_get();
}