protected function DateRecurModularUtilityTrait::getCurrentUserTimeZone in Recurring Date Field Modular Widgets 8
Same name and namespace in other branches
- 3.x src/DateRecurModularUtilityTrait.php \Drupal\date_recur_modular\DateRecurModularUtilityTrait::getCurrentUserTimeZone()
- 2.x src/DateRecurModularUtilityTrait.php \Drupal\date_recur_modular\DateRecurModularUtilityTrait::getCurrentUserTimeZone()
Get the time zone associated with the current user.
Return value
string A time zone.
2 calls to DateRecurModularUtilityTrait::getCurrentUserTimeZone()
- DateRecurModularUtilityTrait::getDefaultTimeZone in src/
DateRecurModularUtilityTrait.php - Determines a default time zone for a field item.
- DateRecurModularUtilityTrait::isAllDay in src/
DateRecurModularUtilityTrait.php - Determine whether a field item represents a full day.
File
- src/
DateRecurModularUtilityTrait.php, line 194
Class
- DateRecurModularUtilityTrait
- Trait containing convenience methods for dealing with date recur widgets.
Namespace
Drupal\date_recur_modularCode
protected function getCurrentUserTimeZone() : string {
return \drupal_get_user_timezone();
}